summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2016-09-05 19:16:58 +0200
committerGitHub <noreply@github.com>2016-09-05 19:16:58 +0200
commit0301d2fdc268b5f086d697ff855d72c88e3f2c00 (patch)
tree54c6b8cbee5ab1020bd57f64acccb4fed7f69907
parente28d151a8a1d458f3c18897c6095decc17b0c3a1 (diff)
parentacda2b793f69c6e0e9b9667e9ebe8a0325eb5ecd (diff)
downloadqmk_firmware-0301d2fdc268b5f086d697ff855d72c88e3f2c00.tar.gz
qmk_firmware-0301d2fdc268b5f086d697ff855d72c88e3f2c00.tar.xz
Merge pull request #710 from algernon/h/tap-dance/keyup-seq-start-fix
tap-dance: Do not start a sequence on keyup
-rw-r--r--quantum/process_keycode/process_tap_dance.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/quantum/process_keycode/process_tap_dance.c b/quantum/process_keycode/process_tap_dance.c
index 07de3ecb8..79ade4d00 100644
--- a/quantum/process_keycode/process_tap_dance.c
+++ b/quantum/process_keycode/process_tap_dance.c
@@ -65,9 +65,9 @@ bool process_tap_dance(uint16_t keycode, keyrecord_t *record) {
highest_td = idx;
action = &tap_dance_actions[idx];
- action->state.keycode = keycode;
action->state.pressed = record->event.pressed;
if (record->event.pressed) {
+ action->state.keycode = keycode;
action->state.count++;
action->state.timer = timer_read();
@@ -77,8 +77,9 @@ bool process_tap_dance(uint16_t keycode, keyrecord_t *record) {
process_tap_dance_action_on_dance_finished (paction);
reset_tap_dance (&paction->state);
}
+
+ last_td = keycode;
}
- last_td = keycode;
break;