diff options
author | skullY <skullydazed@gmail.com> | 2017-03-21 22:06:47 -0700 |
---|---|---|
committer | skullY <skullydazed@gmail.com> | 2017-03-21 22:06:47 -0700 |
commit | 452949f9139a04d46748e6abc03e92d65d74eb30 (patch) | |
tree | 5f48221df354c5511550fa6144b34e47bf51528c /keyboards/clueboard/keymaps/mouse_keys | |
parent | dd967f2c0512a0007d214e219edf60dd990b778c (diff) |
Add #1170 to all the clueboard keymaps
Diffstat (limited to 'keyboards/clueboard/keymaps/mouse_keys')
-rw-r--r-- | keyboards/clueboard/keymaps/mouse_keys/keymap.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/keyboards/clueboard/keymaps/mouse_keys/keymap.c b/keyboards/clueboard/keymaps/mouse_keys/keymap.c index a9c5cebd0c..d3108d1e2b 100644 --- a/keyboards/clueboard/keymaps/mouse_keys/keymap.c +++ b/keyboards/clueboard/keymaps/mouse_keys/keymap.c @@ -60,6 +60,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: @@ -71,6 +72,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 { @@ -80,7 +82,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 { |