Fix layer switching from tap dances by redoing the keymap lookup (#17935)
This commit is contained in:
@@ -251,7 +251,11 @@ bool process_record_quantum(keyrecord_t *record) {
|
||||
#endif
|
||||
|
||||
#ifdef TAP_DANCE_ENABLE
|
||||
preprocess_tap_dance(keycode, record);
|
||||
if (preprocess_tap_dance(keycode, record)) {
|
||||
// The tap dance might have updated the layer state, therefore the
|
||||
// result of the keycode lookup might change.
|
||||
keycode = get_record_keycode(record, true);
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!(
|
||||
|
||||
Reference in New Issue
Block a user