aboutsummaryrefslogtreecommitdiffstats
path: root/quantum/keymap_common.c
diff options
context:
space:
mode:
authorJack Humbert <jack.humb@gmail.com>2017-02-15 11:25:33 -0500
committerJack Humbert <jack.humb@gmail.com>2017-02-15 11:25:33 -0500
commit69ea10f9a9407415d8cbb5575a08bd73d5ddd7f9 (patch)
treeca2ed059803bdb8316b76272dafafe54593758cf /quantum/keymap_common.c
parent7bef285553dee01bbcb1eaadefbfb39ed75baea4 (diff)
downloadfirmware-69ea10f9a9407415d8cbb5575a08bd73d5ddd7f9.tar.gz
firmware-69ea10f9a9407415d8cbb5575a08bd73d5ddd7f9.tar.bz2
firmware-69ea10f9a9407415d8cbb5575a08bd73d5ddd7f9.zip
adds layer tap toggle
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 54b872d49..002eabd85 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;