Fix functions when NO_ACTION_TAPPING
is defined (#11528)
This commit is contained in:
parent
8f03657491
commit
48a79b08cc
13 changed files with 537 additions and 23 deletions
|
@ -145,7 +145,11 @@ bool process_caps_word(uint16_t keycode, keyrecord_t* record) {
|
|||
case QK_SWAP_HANDS ... QK_SWAP_HANDS_MAX:
|
||||
// Note: IS_SWAP_HANDS_KEYCODE() actually tests for the special action keycodes like SH_TOGG, SH_TT, ...,
|
||||
// which currently overlap the SH_T(kc) range.
|
||||
if (IS_SWAP_HANDS_KEYCODE(keycode) || record->tap.count == 0) {
|
||||
if (IS_SWAP_HANDS_KEYCODE(keycode)
|
||||
# ifndef NO_ACTION_TAPPING
|
||||
|| record->tap.count == 0
|
||||
# endif // NO_ACTION_TAPPING
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
keycode = QK_SWAP_HANDS_GET_TAP_KEYCODE(keycode);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue