diff options
author | Jack Humbert <[email protected]> | 2015-10-27 23:06:18 -0400 |
---|---|---|
committer | Jack Humbert <[email protected]> | 2015-10-27 23:06:18 -0400 |
commit | 18da1e6801335b0d9515ab72e9236a01d629915f (patch) | |
tree | b742da9b8d7f766a6e63957dd0b201007ffeb0fe /quantum/keymap_common.c | |
parent | d9f08e6177271594fa573993d9f4dbc2d98c7416 (diff) | |
download | qmk_firmware-18da1e6801335b0d9515ab72e9236a01d629915f.tar.gz qmk_firmware-18da1e6801335b0d9515ab72e9236a01d629915f.zip |
layer tap, mod tap
Diffstat (limited to 'quantum/keymap_common.c')
-rw-r--r-- | quantum/keymap_common.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/quantum/keymap_common.c b/quantum/keymap_common.c index da75271727..fc889a3082 100644 --- a/quantum/keymap_common.c +++ b/quantum/keymap_common.c @@ -118,6 +118,10 @@ action_t action_for_key(uint8_t layer, keypos_t key) action_t action; action.code = ACTION_MODS_TAP_KEY((keycode >> 0x8) & 0xF, keycode & 0xFF); return action; + } else if (keycode >= 0x8000 && keycode < 0x9000) { + action_t action; + action.code = ACTION_LAYER_TAP_KEY((keycode >> 0x8) & 0xF, keycode & 0xFF); + return action; #ifdef UNICODE_ENABLE } else if (keycode >= 0x8000000) { action_t action; |