Ignore auto-fill enter in shortcut

This commit is contained in:
rijkvanzanten
2020-09-30 16:44:10 -04:00
parent ac85a6fa87
commit 3f77e5b885

View File

@@ -14,6 +14,8 @@ document.body.addEventListener('keydown', (event: KeyboardEvent) => {
});
document.body.addEventListener('keyup', (event: KeyboardEvent) => {
if (event.repeat || !event.key) return;
const key = mapKeys(event.key);
keysdown.delete(key.toLowerCase());
keysdown.delete(key.toUpperCase());