diff options
author | tmk <nobody@nowhere> | 2014-11-18 04:10:48 +0900 |
---|---|---|
committer | tmk <nobody@nowhere> | 2014-11-18 04:10:48 +0900 |
commit | 196164146363d5f3bfb97435f3ac6dfa13c8da72 (patch) | |
tree | f8e8f4c855971ef93b909c8288a6e94916a98bb9 /common/action.c | |
parent | a58b9ddbd5b725fc603e0b796638a488cdb31b46 (diff) | |
parent | 821c719e98f310938e2bb3f2ad3e6a726bd8b03e (diff) |
Merge branch 'action_fix'
Diffstat (limited to 'common/action.c')
-rw-r--r-- | common/action.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/common/action.c b/common/action.c index fddb97c508..83bc8a6187 100644 --- a/common/action.c +++ b/common/action.c @@ -237,6 +237,16 @@ void process_action(keyrecord_t *record) case ACT_LAYER_TAP: case ACT_LAYER_TAP_EXT: switch (action.layer_tap.code) { + case 0xe0 ... 0xef: + /* layer On/Off with modifiers(left only) */ + if (event.pressed) { + layer_on(action.layer_tap.val); + register_mods(action.layer_tap.code & 0x0f); + } else { + layer_off(action.layer_tap.val); + unregister_mods(action.layer_tap.code & 0x0f); + } + break; case OP_TAP_TOGGLE: /* tap toggle */ if (event.pressed) { |