diff options
author | Florian Didron <fdidron@users.noreply.github.com> | 2019-07-30 10:11:09 +0900 |
---|---|---|
committer | Drashna Jaelre <drashna@live.com> | 2019-07-29 18:11:09 -0700 |
commit | 4a5b36ec4c07cd5f84e3c76745646af9e3e14a42 (patch) | |
tree | c4a5b389168208abda4f4ef94ed305a59e87671c /keyboards/planck/ez/ez.c | |
parent | 6d6506e6eecdbb5aca16ae4e305442ffe69d76b2 (diff) |
Fix/music mask (#123)
* chore: align mod tap and mouse keys timings with the ergodox ez
* fix: align planck ez default tapping toggle with ergodox
* fix: ignore all layer keys in music mode
Diffstat (limited to 'keyboards/planck/ez/ez.c')
-rw-r--r-- | keyboards/planck/ez/ez.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/keyboards/planck/ez/ez.c b/keyboards/planck/ez/ez.c index a6995533c9..6e250d4d76 100644 --- a/keyboards/planck/ez/ez.c +++ b/keyboards/planck/ez/ez.c @@ -150,3 +150,19 @@ layer_state_t layer_state_set_kb(layer_state_t state) { } return state; } + +#ifdef AUDIO_ENABLE +bool music_mask_kb(uint16_t keycode) { + switch (keycode) { + case QK_LAYER_TAP ... QK_ONE_SHOT_LAYER_MAX: + case QK_LAYER_TAP_TOGGLE ... QK_LAYER_MOD_MAX: + case QK_MOD_TAP ... QK_MOD_TAP_MAX: + case AU_ON ... MUV_DE: + case RESET: + case EEP_RST: + return false; + default: + return music_mask_user(keycode); + } +} +#endif |