mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-05-16 14:20:29 +00:00
Ensure held OSL is properly released when nesting OSL
This commit is contained in:
parent
548983abc8
commit
399f17f84b
@ -665,8 +665,12 @@ void process_action(keyrecord_t *record, action_t action) {
|
||||
if (tap_count >= ONESHOT_TAP_TOGGLE) {
|
||||
reset_oneshot_layer();
|
||||
set_oneshot_layer(action.layer_tap.val, ONESHOT_TOGGLED);
|
||||
} else {
|
||||
if (get_oneshot_layer() != action.layer_tap.val) {
|
||||
layer_off(action.layer_tap.val);
|
||||
} else {
|
||||
clear_oneshot_layer_state(ONESHOT_PRESSED);
|
||||
}
|
||||
}
|
||||
}
|
||||
# else
|
||||
|
Loading…
Reference in New Issue
Block a user