summaryrefslogtreecommitdiff
path: root/quantum/process_keycode
diff options
context:
space:
mode:
authorDrashna Jaelre <drashna@live.com>2023-02-15 13:06:10 -0800
committerGitHub <noreply@github.com>2023-02-15 21:06:10 +0000
commita63808c23fac9c5fcb9fed296b756ebf6fc34d78 (patch)
treee02c145355f06bf998c35fd5758af1630282b3f9 /quantum/process_keycode
parent7bd049a79ab5511125bf8fa205b618ba8b41e3af (diff)
[Bug] Fix compiliation issue for Key Overrides (#19856)
Diffstat (limited to 'quantum/process_keycode')
-rw-r--r--quantum/process_keycode/process_key_override.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/quantum/process_keycode/process_key_override.c b/quantum/process_keycode/process_key_override.c
index 9b91ae2223..17e490e67a 100644
--- a/quantum/process_keycode/process_key_override.c
+++ b/quantum/process_keycode/process_key_override.c
@@ -186,7 +186,7 @@ const key_override_t *clear_active_override(const bool allow_reregister) {
// Then unregister the mod-free replacement key if desired
if (unregister_replacement) {
- if (IS_KEY(mod_free_replacement)) {
+ if (IS_BASIC_KEYCODE(mod_free_replacement)) {
del_key(mod_free_replacement);
} else {
key_override_printf("NOT KEY 1\n");
@@ -329,7 +329,7 @@ static bool try_activating_override(const uint16_t keycode, const uint8_t layer,
if (!trigger_down && !no_trigger) {
// When activating a key override the trigger is is always unregistered. In the case where the key that newly pressed is not the trigger key, we have to explicitly remove the trigger key from the keyboard report. If the trigger was just pressed down we simply suppress the event which also has the effect of the trigger key not being registered in the keyboard report.
- if (IS_KEY(override->trigger)) {
+ if (IS_BASIC_KEYCODE(override->trigger)) {
del_key(override->trigger);
} else {
unregister_code(override->trigger);
@@ -356,7 +356,7 @@ static bool try_activating_override(const uint16_t keycode, const uint8_t layer,
schedule_deferred_register(mod_free_replacement);
send_keyboard_report();
} else {
- if (IS_KEY(mod_free_replacement)) {
+ if (IS_BASIC_KEYCODE(mod_free_replacement)) {
add_key(mod_free_replacement);
} else {
key_override_printf("NOT KEY 2\n");