mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-09-22 00:06:16 +08:00
Ignore keys with Alt modifier
Firefox uses Alt for a number of shortcuts, like switching tabs with Alt + N. This makes it so these shortcuts don't start the test.
This commit is contained in:
parent
b5d5a18984
commit
fdcaff95ef
|
@ -4936,6 +4936,7 @@ function handleAlpha(event) {
|
|||
if (/Numpad/.test(event.key)) return;
|
||||
if (/Volume/.test(event.key)) return;
|
||||
if (event.ctrlKey) return;
|
||||
if (event.altKey) return;
|
||||
if (event.metaKey) return;
|
||||
event = emulateLayout(event);
|
||||
|
||||
|
|
Loading…
Reference in a new issue