Suppress pressed keys when the layer or keymap changes

This commit is contained in:
Eric Tang
2018-08-18 19:52:07 -07:00
parent b4c2204e50
commit 2e2b9d08a9
3 changed files with 6 additions and 2 deletions

View File

@@ -5,6 +5,7 @@
#include "config_parser/parse_keymap.h"
#include "config_parser/config_globals.h"
#include "macros.h"
#include "usb_report_updater.h"
keymap_reference_t AllKeymaps[MAX_KEYMAP_NUM] = {
{
@@ -24,6 +25,7 @@ void SwitchKeymapById(uint8_t index)
ValidatedUserConfigBuffer.offset = AllKeymaps[index].offset;
ParseKeymap(&ValidatedUserConfigBuffer, index, AllKeymapsCount, AllMacrosCount);
LedDisplay_UpdateText();
KeymapChanged = true;
}
bool SwitchKeymapByAbbreviation(uint8_t length, char *abbrev)