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:
SeerLite 2020-12-21 22:02:28 -03:00
parent b5d5a18984
commit fdcaff95ef

View file

@ -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);