mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-11-22 00:16:41 +06:00
Remove unuseful layer_on() call (#23055)
This commit is contained in:
parent
8449ad0fc3
commit
c92277a8ae
|
@ -658,7 +658,6 @@ void process_action(keyrecord_t *record, action_t action) {
|
|||
layer_off(action.layer_tap.val);
|
||||
break;
|
||||
} else if (tap_count < ONESHOT_TAP_TOGGLE) {
|
||||
layer_on(action.layer_tap.val);
|
||||
set_oneshot_layer(action.layer_tap.val, ONESHOT_START);
|
||||
}
|
||||
} else {
|
||||
|
@ -671,7 +670,6 @@ void process_action(keyrecord_t *record, action_t action) {
|
|||
}
|
||||
# else
|
||||
if (event.pressed) {
|
||||
layer_on(action.layer_tap.val);
|
||||
set_oneshot_layer(action.layer_tap.val, ONESHOT_START);
|
||||
} else {
|
||||
clear_oneshot_layer_state(ONESHOT_PRESSED);
|
||||
|
|
Loading…
Reference in New Issue
Block a user