summaryrefslogtreecommitdiff
path: root/quantum
diff options
context:
space:
mode:
authorPascal Getreuer <50221757+getreuer@users.noreply.github.com>2023-02-14 12:44:42 -0800
committerGitHub <noreply@github.com>2023-02-14 12:44:42 -0800
commit7d692d64f3997b816607c282b09fecae14212fe6 (patch)
tree1a02ea54dfd987eee162f41031e512351878036b /quantum
parent9908ed7ecd1bc0c45f0322b959811bd8fd641961 (diff)
Fix Layer Mod handling of with right-handed mods. (#19845)
Diffstat (limited to 'quantum')
-rw-r--r--quantum/keymap_common.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/quantum/keymap_common.c b/quantum/keymap_common.c
index f4982e8291..b4feb39739 100644
--- a/quantum/keymap_common.c
+++ b/quantum/keymap_common.c
@@ -128,7 +128,7 @@ action_t action_for_keycode(uint16_t keycode) {
case QK_LAYER_MOD ... QK_LAYER_MOD_MAX:
mod = mod_config(QK_LAYER_MOD_GET_MODS(keycode));
action_layer = QK_LAYER_MOD_GET_LAYER(keycode);
- action.code = ACTION_LAYER_MODS(action_layer, mod);
+ action.code = ACTION_LAYER_MODS(action_layer, (mod & 0x10) ? mod << 4 : mod);
break;
#endif
#ifndef NO_ACTION_TAPPING