diff options
author | Stick <nstickney@gmail.com> | 2017-03-27 21:19:36 -0500 |
---|---|---|
committer | Stick <nstickney@gmail.com> | 2017-03-27 21:19:36 -0500 |
commit | a47e9166353012777b6e2d9c64f0c87420576f18 (patch) | |
tree | dfe9a8ab1ae4d3ced95afc528c9ed0c24cbfb444 /keyboards/clueboard/keymaps/win_optimized/keymap.c | |
parent | a03d946d0c4edf0c3e50812af7f3c826b958c945 (diff) | |
parent | 7a9437a2e3a2597e8eef1ea293bfb3c394f588b9 (diff) |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'keyboards/clueboard/keymaps/win_optimized/keymap.c')
-rw-r--r-- | keyboards/clueboard/keymaps/win_optimized/keymap.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/keyboards/clueboard/keymaps/win_optimized/keymap.c b/keyboards/clueboard/keymaps/win_optimized/keymap.c index a85f0824f1..c5553ff1fb 100644 --- a/keyboards/clueboard/keymaps/win_optimized/keymap.c +++ b/keyboards/clueboard/keymaps/win_optimized/keymap.c @@ -50,6 +50,7 @@ const uint16_t PROGMEM fn_actions[] = { void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) { static uint8_t mods_pressed; + static bool mod_flag; switch (id) { case 0: @@ -61,6 +62,7 @@ void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) { /* The key is being pressed. */ if (mods_pressed) { + mod_flag = true; add_key(KC_GRV); send_keyboard_report(); } else { @@ -70,7 +72,8 @@ void action_function(keyrecord_t *record, uint8_t id, uint8_t opt) { } else { /* The key is being released. */ - if (mods_pressed) { + if (mod_flag) { + mod_flag = false; del_key(KC_GRV); send_keyboard_report(); } else { |