diff options
author | Joel Challis <git@zvecr.com> | 2023-02-10 21:10:14 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-10 21:10:14 +0000 |
commit | 1d0b4c8d38794dc019ecb224f2992b4ddfa70839 (patch) | |
tree | 48e0423bcafbb2fa680c7bc5199aba8794665339 /users | |
parent | 2ffdec5dc2a5cb350998168e76d7916e2d9728fc (diff) |
Tidy up use of keycode range helpers (#19756)
Diffstat (limited to 'users')
-rw-r--r-- | users/twschum/xtonhasvim.c | 2 | ||||
-rw-r--r-- | users/xtonhasvim/xtonhasvim.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/users/twschum/xtonhasvim.c b/users/twschum/xtonhasvim.c index b3f410bc26..60f6fa1377 100644 --- a/users/twschum/xtonhasvim.c +++ b/users/twschum/xtonhasvim.c @@ -89,7 +89,7 @@ static void comma_period(uint16_t keycode) { bool process_record_vimlayer(uint16_t keycode, keyrecord_t *record) { /****** mod passthru *****/ - if(record->event.pressed && layer_state_is(vim_cmd_layer()) && (IS_MOD(keycode) || keycode == LSFT(KC_LALT))) { + if(record->event.pressed && layer_state_is(vim_cmd_layer()) && (IS_MODIFIER_KEYCODE(keycode) || keycode == LSFT(KC_LALT))) { mod_override_layer_state = layer_state; mod_override_triggering_key = keycode; // TODO: change this to track key location instead diff --git a/users/xtonhasvim/xtonhasvim.c b/users/xtonhasvim/xtonhasvim.c index 2d59cf2c62..a33dc68cad 100644 --- a/users/xtonhasvim/xtonhasvim.c +++ b/users/xtonhasvim/xtonhasvim.c @@ -139,7 +139,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { } /****** mod passthru *****/ - if(record->event.pressed && layer_state_is(vim_cmd_layer()) && (IS_MOD(keycode) || keycode == LSFT(KC_LALT))) { + if(record->event.pressed && layer_state_is(vim_cmd_layer()) && (IS_MODIFIER_KEYCODE(keycode) || keycode == LSFT(KC_LALT))) { mod_override_layer_state = layer_state; mod_override_triggering_key = keycode; // TODO: change this to track key location instead |