diff options
| -rw-r--r-- | tmk_core/common/action.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tmk_core/common/action.c b/tmk_core/common/action.c index 909b9c39c..b39836f0f 100644 --- a/tmk_core/common/action.c +++ b/tmk_core/common/action.c | |||
| @@ -604,6 +604,7 @@ void process_action(keyrecord_t *record, action_t action) { | |||
| 604 | swap_hands = false; | 604 | swap_hands = false; |
| 605 | } | 605 | } |
| 606 | break; | 606 | break; |
| 607 | # ifndef NO_ACTION_ONESHOT | ||
| 607 | case OP_SH_ONESHOT: | 608 | case OP_SH_ONESHOT: |
| 608 | if (event.pressed) { | 609 | if (event.pressed) { |
| 609 | set_oneshot_swaphands(); | 610 | set_oneshot_swaphands(); |
| @@ -611,6 +612,7 @@ void process_action(keyrecord_t *record, action_t action) { | |||
| 611 | release_oneshot_swaphands(); | 612 | release_oneshot_swaphands(); |
| 612 | } | 613 | } |
| 613 | break; | 614 | break; |
| 615 | # endif | ||
| 614 | 616 | ||
| 615 | # ifndef NO_ACTION_TAPPING | 617 | # ifndef NO_ACTION_TAPPING |
| 616 | case OP_SH_TAP_TOGGLE: | 618 | case OP_SH_TAP_TOGGLE: |
| @@ -701,9 +703,11 @@ void process_action(keyrecord_t *record, action_t action) { | |||
| 701 | #endif | 703 | #endif |
| 702 | 704 | ||
| 703 | #ifdef SWAP_HANDS_ENABLE | 705 | #ifdef SWAP_HANDS_ENABLE |
| 706 | # ifndef NO_ACTION_ONESHOT | ||
| 704 | if (event.pressed && !(action.kind.id == ACT_SWAP_HANDS && action.swap.code == OP_SH_ONESHOT)) { | 707 | if (event.pressed && !(action.kind.id == ACT_SWAP_HANDS && action.swap.code == OP_SH_ONESHOT)) { |
| 705 | use_oneshot_swaphands(); | 708 | use_oneshot_swaphands(); |
| 706 | } | 709 | } |
| 710 | # endif | ||
| 707 | #endif | 711 | #endif |
| 708 | 712 | ||
| 709 | #ifndef NO_ACTION_ONESHOT | 713 | #ifndef NO_ACTION_ONESHOT |
