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
This commit is contained in:
committed by
Drashna Jaelre
parent
6d6506e6ee
commit
4a5b36ec4c
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user