mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-12-26 11:08:52 +06:00
bc536b9b6d
Since combos keep local state about what keys have been previously pressed, when combos are layered, multiple keypresses will register for any key with multiple combos assigned to it. In order to fix this, I switched process_combo to use a global keycode / keyrecord register and timer. When a keypress is consumed by a combo, it gets stored in the register and the timer is updated; when the next keypress takes too long or a key is pressed that isn't part of any combo, the buffer is emitted and the timer reset. This has a few side effects. For instance, I couldn't _not_ fix combo keys printing out of order while also fixing this bug, so combo keys print in order correctly when a combo fails. since combos no longer have local timers, the logic around when combos time out has changed. now that there is a single timer pressing any combo key (including one in a different combo) will reset the timer for all combos, making combo entry a little more lenient. Since combos no longer have local keycode / keyrecord state, there is an edge case where incomplete combo keys can be consumed. if you have a combo for a+s = tab and a combo for b+n = space, if you press a+b+n, only a space will be emitted. This is because when b+n completes successfully, it drops the register. |
||
---|---|---|
.. | ||
process_audio.c | ||
process_audio.h | ||
process_auto_shift.c | ||
process_auto_shift.h | ||
process_clicky.c | ||
process_clicky.h | ||
process_combo.c | ||
process_combo.h | ||
process_key_lock.c | ||
process_key_lock.h | ||
process_leader.c | ||
process_leader.h | ||
process_midi.c | ||
process_midi.h | ||
process_music.c | ||
process_music.h | ||
process_printer_bb.c | ||
process_printer.c | ||
process_printer.h | ||
process_steno.c | ||
process_steno.h | ||
process_tap_dance.c | ||
process_tap_dance.h | ||
process_terminal_nop.h | ||
process_terminal.c | ||
process_terminal.h | ||
process_ucis.c | ||
process_ucis.h | ||
process_unicode_common.c | ||
process_unicode_common.h | ||
process_unicode.c | ||
process_unicode.h | ||
process_unicodemap.c | ||
process_unicodemap.h |