diff options
author | Kjetil Orbekk <kj@orbekk.com> | 2024-04-08 20:33:20 -0400 |
---|---|---|
committer | Kjetil Orbekk <kj@orbekk.com> | 2024-04-08 20:33:20 -0400 |
commit | 706c4d3c8f90af52a7f4edb90cc9781fcd3b8da8 (patch) | |
tree | c3dab23cef8ba6b7ab58b9c86539534b5eb407aa | |
parent | 3ddebbd7935db9f8ef130a57368c5a6cb2f43134 (diff) |
Fix custom shift application logic
-rw-r--r-- | keyboards/orbekk_dactyl/keymaps/default/keymap.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/keyboards/orbekk_dactyl/keymaps/default/keymap.c b/keyboards/orbekk_dactyl/keymaps/default/keymap.c index d4cfdc5e42..ac97a604d2 100644 --- a/keyboards/orbekk_dactyl/keymaps/default/keymap.c +++ b/keyboards/orbekk_dactyl/keymaps/default/keymap.c @@ -156,7 +156,9 @@ uint8_t NUM_CUSTOM_SHIFT_KEYS = bool process_record_user(uint16_t keycode, keyrecord_t* record) { if (!process_achordion(keycode, record)) { return false; } - if (layer_state_cmp(default_layer_state, GR) && + const bool use_custom_shift = !IS_LAYER_ON(DV) && + !IS_LAYER_ON(QW) && !IS_LAYER_ON(GAMING); + if (use_custom_shift && !process_custom_shift_keys(keycode, record)) { return false; } |