mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-06 13:55:19 +08:00
Ignore Alt only modifier on Linux
Alt is used for a lot of important shortcuts on Firefox on Linux.
This commit is contained in:
parent
826a539113
commit
9b01bedcfe
1 changed files with 5 additions and 1 deletions
|
@ -4999,7 +4999,11 @@ function handleAlpha(event) {
|
|||
if (/F\d+/.test(event.key)) return;
|
||||
if (/Numpad/.test(event.key)) return;
|
||||
if (/Volume/.test(event.key)) return;
|
||||
if (event.ctrlKey && !event.altKey) return;
|
||||
if (
|
||||
event.ctrlKey != event.altKey &&
|
||||
(event.ctrlKey || /Linux/.test(window.navigator.platform))
|
||||
)
|
||||
return;
|
||||
if (event.metaKey) return;
|
||||
event = emulateLayout(event);
|
||||
|
||||
|
|
Loading…
Reference in a new issue