diff options
author | just-another-jxliu <just-another-jxliu@users.noreply.github.com> | 2019-10-22 13:03:39 -0700 |
---|---|---|
committer | Florian Didron <fdidron@users.noreply.github.com> | 2019-11-04 17:24:07 +0900 |
commit | 0a3343aca90ea49e286d469c7c61ef4230f03552 (patch) | |
tree | a5ba0ce9c76412556d18381a76b30f6e367b0db1 /quantum | |
parent | a595a1b67573a2ce6a27c4e1731a168ac40ca24b (diff) |
Fix held key getting stuck when NKRO is toggled (#6570)
* Fix held key getting stuck when NKRO is toggled
* Updated file to latest qmk version and added fix to cases MAGIC_UNHOST_NKRO & MAGIC_HOST_NKRO as well.
* Revert merged quantum.c
Diffstat (limited to 'quantum')
-rw-r--r-- | quantum/quantum.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/quantum/quantum.c b/quantum/quantum.c index 4c4cb8d054..a268e0dc03 100644 --- a/quantum/quantum.c +++ b/quantum/quantum.c @@ -567,6 +567,7 @@ bool process_record_quantum(keyrecord_t *record) { keymap_config.swap_backslash_backspace = true; break; case MAGIC_HOST_NKRO: + clear_keyboard(); // clear first buffer to prevent stuck keys keymap_config.nkro = true; break; case MAGIC_SWAP_ALT_GUI: @@ -609,6 +610,7 @@ bool process_record_quantum(keyrecord_t *record) { keymap_config.swap_backslash_backspace = false; break; case MAGIC_UNHOST_NKRO: + clear_keyboard(); // clear first buffer to prevent stuck keys keymap_config.nkro = false; break; case MAGIC_UNSWAP_ALT_GUI: @@ -646,6 +648,7 @@ bool process_record_quantum(keyrecord_t *record) { #endif break; case MAGIC_TOGGLE_NKRO: + clear_keyboard(); // clear first buffer to prevent stuck keys keymap_config.nkro = !keymap_config.nkro; break; default: |