summaryrefslogtreecommitdiff
path: root/quantum/keymap_common.c
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2017-02-19 00:04:14 -0500
committerJack Humbert <jack.humb@gmail.com>2017-02-19 00:04:14 -0500
commitc2239e6b96fdea11d449d220db3d8bca40b38bde (patch)
tree0c2fe7df345868b56dfb3478ceb1b54a1e8eec29 /quantum/keymap_common.c
parent8d0fdf10086a0e8a1615f0521fccf1f5a2806497 (diff)
parent49e72632d2200fc3bf71d5ced2aa43058da3b2e0 (diff)
downloadqmk_firmware-c2239e6b96fdea11d449d220db3d8bca40b38bde.tar.gz
qmk_firmware-c2239e6b96fdea11d449d220db3d8bca40b38bde.zip
merging
Diffstat (limited to 'quantum/keymap_common.c')
-rw-r--r--quantum/keymap_common.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/quantum/keymap_common.c b/quantum/keymap_common.c
index 54b872d49e..002eabd85e 100644
--- a/quantum/keymap_common.c
+++ b/quantum/keymap_common.c
@@ -119,6 +119,9 @@ action_t action_for_key(uint8_t layer, keypos_t key)
mod = keycode & 0xFF;
action.code = ACTION_MODS_ONESHOT(mod);
break;
+ case QK_LAYER_TAP_TOGGLE ... QK_LAYER_TAP_TOGGLE_MAX:
+ 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);
break;