aboutsummaryrefslogtreecommitdiffstats
path: root/quantum/keymap_common.c
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2017-06-26 18:54:01 -0400
committerGitHub <noreply@github.com>2017-06-26 18:54:01 -0400
commit61cdc9aaa462afbcbaf57f2c5991e06924caed0e (patch)
tree0076143e7bbb1e88818ecde430c8bc5be57e6743 /quantum/keymap_common.c
parentd1fb8d2296889ee1aaa08988c8951eb5f12d930b (diff)
downloadfirmware-61cdc9aaa462afbcbaf57f2c5991e06924caed0e.tar.gz
firmware-61cdc9aaa462afbcbaf57f2c5991e06924caed0e.tar.bz2
firmware-61cdc9aaa462afbcbaf57f2c5991e06924caed0e.zip
Allow mod swapping for mod tap (MT) (#1202)
* allow mod swapping for mod tap * quick include * fix the mod swapping * make changes consistent with action code * fix bug * re-enable no gui, etc * fix binary comps * solid logic
Diffstat (limited to 'quantum/keymap_common.c')
-rw-r--r--quantum/keymap_common.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/quantum/keymap_common.c b/quantum/keymap_common.c
index 9dafc8b51..b1460c53c 100644
--- a/quantum/keymap_common.c
+++ b/quantum/keymap_common.c
@@ -123,7 +123,8 @@ action_t action_for_key(uint8_t layer, keypos_t key)
action.code = ACTION_LAYER_TAP_TOGGLE(keycode & 0xFF);
break;
case QK_MOD_TAP ... QK_MOD_TAP_MAX:
- action.code = ACTION_MODS_TAP_KEY((keycode >> 0x8) & 0x1F, keycode & 0xFF);
+ mod = mod_config((keycode >> 0x8) & 0x1F);
+ action.code = ACTION_MODS_TAP_KEY(mod, keycode & 0xFF);
break;
#ifdef BACKLIGHT_ENABLE
case BL_0 ... BL_15: