diff options
| author | Drashna Jaelre <drashna@live.com> | 2023-02-18 17:08:03 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-19 12:08:03 +1100 |
| commit | 48a79b08ccbcd0af5269e2e9334042c8347d18f8 (patch) | |
| tree | 8f1f3c05d20ac48d57f7acce2c69864239faa47b /quantum/process_keycode/process_caps_word.c | |
| parent | 8f036574910177177cdd4e3cf5b48319b094c915 (diff) | |
Fix functions when `NO_ACTION_TAPPING` is defined (#11528)
Diffstat (limited to 'quantum/process_keycode/process_caps_word.c')
| -rw-r--r-- | quantum/process_keycode/process_caps_word.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/quantum/process_keycode/process_caps_word.c b/quantum/process_keycode/process_caps_word.c index 933abe629e..94302b29ae 100644 --- a/quantum/process_keycode/process_caps_word.c +++ b/quantum/process_keycode/process_caps_word.c | |||
| @@ -145,7 +145,11 @@ bool process_caps_word(uint16_t keycode, keyrecord_t* record) { | |||
| 145 | case QK_SWAP_HANDS ... QK_SWAP_HANDS_MAX: | 145 | case QK_SWAP_HANDS ... QK_SWAP_HANDS_MAX: |
| 146 | // Note: IS_SWAP_HANDS_KEYCODE() actually tests for the special action keycodes like SH_TOGG, SH_TT, ..., | 146 | // Note: IS_SWAP_HANDS_KEYCODE() actually tests for the special action keycodes like SH_TOGG, SH_TT, ..., |
| 147 | // which currently overlap the SH_T(kc) range. | 147 | // which currently overlap the SH_T(kc) range. |
| 148 | if (IS_SWAP_HANDS_KEYCODE(keycode) || record->tap.count == 0) { | 148 | if (IS_SWAP_HANDS_KEYCODE(keycode) |
| 149 | # ifndef NO_ACTION_TAPPING | ||
| 150 | || record->tap.count == 0 | ||
| 151 | # endif // NO_ACTION_TAPPING | ||
| 152 | ) { | ||
| 149 | return true; | 153 | return true; |
| 150 | } | 154 | } |
| 151 | keycode = QK_SWAP_HANDS_GET_TAP_KEYCODE(keycode); | 155 | keycode = QK_SWAP_HANDS_GET_TAP_KEYCODE(keycode); |
