dynamic_keymap: check reset keycode at the time of applying

This commit is contained in:
Ilya Zhuravlev
2021-01-16 20:23:58 -05:00
parent 4af4b5a4c3
commit 5ebf68afcc
3 changed files with 71 additions and 6 deletions

View File

@ -125,12 +125,6 @@ __attribute__((weak)) void post_process_record_kb(uint16_t keycode, keyrecord_t
__attribute__((weak)) void post_process_record_user(uint16_t keycode, keyrecord_t *record) {}
void reset_keyboard(void) {
#ifdef VIAL_ENABLE
/* Until keyboard is unlocked, disable processing of the RESET keycode */
if (!vial_unlocked)
return;
#endif
clear_keyboard();
#if defined(MIDI_ENABLE) && defined(MIDI_BASIC)
process_midi_all_notes_off();