mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-03-13 15:36:42 +08:00
Merge pull request #812 from SeerLite/alt-linux
Ignore Alt only modifier on Linux
This commit is contained in:
commit
833fd66ab5
1 changed files with 5 additions and 1 deletions
|
@ -5035,7 +5035,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