Skip to content

Commit

Permalink
Fix/music mask (#123)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
fdidron authored and drashna committed Jul 30, 2019
1 parent 6d6506e commit 4a5b36e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
1 change: 1 addition & 0 deletions keyboards/planck/ez/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@
#define RGB_MATRIX_KEYPRESSES
#define RGB_MATRIX_FRAMEBUFFER_EFFECTS


#define RGB_MATRIX_LED_PROCESS_LIMIT 5
#define RGB_MATRIX_LED_FLUSH_LIMIT 26

Expand Down
16 changes: 16 additions & 0 deletions keyboards/planck/ez/ez.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 4a5b36e

Please sign in to comment.