Skip to content
This repository was archived by the owner on Oct 22, 2021. It is now read-only.

Commit 2217b24

Browse files
committed
🐛 Fix #330
1 parent 50a555e commit 2217b24

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/classes/keyboard.class.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1102,6 +1102,8 @@ class Keyboard {
11021102
};
11031103

11041104
document.onkeydown = (e) => {
1105+
// See #330
1106+
if (e.getModifierState("AltGraph")) return;
11051107
let key = findKey(e);
11061108
if (key === null) return;
11071109
if (key.length) {
@@ -1115,6 +1117,8 @@ class Keyboard {
11151117
};
11161118

11171119
document.onkeyup = (e) => {
1120+
// See #330
1121+
if (e.getModifierState("AltGraph")) return;
11181122
let key = findKey(e);
11191123
if (key === null) return;
11201124
if (key.length) {

0 commit comments

Comments
 (0)