forked from mirrors/qmk_userspace
Fix OSM on a OSL activated layer (#20410)
This commit is contained in:
parent
f35dee5c05
commit
e0eb90aba1
2 changed files with 47 additions and 1 deletions
|
@ -374,7 +374,7 @@ void process_action(keyrecord_t *record, action_t action) {
|
|||
if (is_oneshot_layer_active() && event.pressed &&
|
||||
(action.kind.id == ACT_USAGE || !(IS_MODIFIER_KEYCODE(action.key.code)
|
||||
# ifndef NO_ACTION_TAPPING
|
||||
|| (tap_count == 0 && (action.kind.id == ACT_LMODS_TAP || action.kind.id == ACT_RMODS_TAP))
|
||||
|| ((action.kind.id == ACT_LMODS_TAP || action.kind.id == ACT_RMODS_TAP) && (action.layer_tap.code <= MODS_TAP_TOGGLE || tap_count == 0))
|
||||
# endif
|
||||
))
|
||||
# ifdef SWAP_HANDS_ENABLE
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue