You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qmk_firmware/quantum/process_keycode
Gergely Nagy acda2b793f tap-dance: Do not start a sequence on keyup
There was an odd case, which confused the hell out of tap-dance: suppose
you had a number of tap-dance keys, on a layer, and as part of the
tap-dance, you turned that layer off - or had it on one-shot to begin
with. In this case, the keydown event would trigger the tap-dance key,
but the keyup would not. This had two funky consequences:

- tap-dance did not correctly register that the dance has ended.
- pressing any other tap-dance key would interrupt the previous
  tap-dance, and potentially input unwanted characters.

To fix this, we simply do not start a tap-dance sequence on keyup, only
when it is pressed. This way the previous sequence has enough time to
time-out and finish properly, and we don't get confused.

This fixes algernon/ergodox-layout#107.

Signed-off-by: Gergely Nagy <algernon@madhouse-project.org>
8 years ago
..
process_chording.c Moves features to their own files (process_*), adds tap dance feature (#460) 8 years ago
process_chording.h Moves features to their own files (process_*), adds tap dance feature (#460) 8 years ago
process_leader.c Moves features to their own files (process_*), adds tap dance feature (#460) 8 years ago
process_leader.h Moves features to their own files (process_*), adds tap dance feature (#460) 8 years ago
process_midi.c Fixes midi functionality 8 years ago
process_midi.h Moves features to their own files (process_*), adds tap dance feature (#460) 8 years ago
process_music.c ensure there's a recording to play before playing; also enables the LGUI button to play a tone 8 years ago
process_music.h Moves features to their own files (process_*), adds tap dance feature (#460) 8 years ago
process_tap_dance.c tap-dance: Do not start a sequence on keyup 8 years ago
process_tap_dance.h tap-dance: Major rework, to make it more reliable 8 years ago
process_unicode.c process_unicode: Add get_unicode_input_mode() 8 years ago
process_unicode.h process_unicode: Add get_unicode_input_mode() 8 years ago