1
0
Fork 0

Fix layer switching from tap dances by redoing the keymap lookup (#17935)

This commit is contained in:
Sergey Vlasov 2022-10-03 12:48:16 +03:00 committed by GitHub
parent 0e6f191436
commit ca0c12847a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 874 additions and 5 deletions

View file

@ -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 (!(