summaryrefslogtreecommitdiff
path: root/app/src/behaviors/behavior_hold_tap.c
diff options
context:
space:
mode:
authorinnovaker <66737976+innovaker@users.noreply.github.com>2020-10-25 11:32:28 +0000
committerPete Johanson <peter@peterjohanson.com>2020-11-03 23:50:54 -0500
commitd748d8a7496ea436a7e643245dbefb7b9c99d0cb (patch)
treeab7620ac20c205de5a5b158b6e8ceceb617a52f0 /app/src/behaviors/behavior_hold_tap.c
parenta65295c2a7b029f05155e30a53f365644c0ecc3c (diff)
refactor: Replace superseded key names
Replace deprecated key names (LCTL, NUM_0, NUM_1). Replace abbreviated names with fully qualified names (LCTL, RGUI, NUM_0, NUM_1). Follow-up to #21.
Diffstat (limited to 'app/src/behaviors/behavior_hold_tap.c')
-rw-r--r--app/src/behaviors/behavior_hold_tap.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/src/behaviors/behavior_hold_tap.c b/app/src/behaviors/behavior_hold_tap.c
index d190148..c53750a 100644
--- a/app/src/behaviors/behavior_hold_tap.c
+++ b/app/src/behaviors/behavior_hold_tap.c
@@ -429,7 +429,8 @@ static int position_state_changed_listener(const struct zmk_event_header *eh) {
}
static inline bool only_mods(struct keycode_state_changed *ev) {
- return ev->usage_page == HID_USAGE_KEY && ev->keycode >= LCTL && ev->keycode <= RGUI;
+ return ev->usage_page == HID_USAGE_KEY && ev->keycode >= LEFT_CONTROL &&
+ ev->keycode <= RIGHT_GUI;
}
static int keycode_state_changed_listener(const struct zmk_event_header *eh) {