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

Commit

Permalink
🐛 Fix altgraph key not being released on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
GitSquared committed Feb 1, 2019
1 parent b5341b6 commit 0552670
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/classes/keyboard.class.js
Original file line number Diff line number Diff line change
Expand Up @@ -1118,7 +1118,7 @@ class Keyboard {

document.onkeyup = (e) => {
// See #330
if (e.getModifierState("AltGraph")) return;
if (e.key !== "AltGraph" && e.getModifierState("AltGraph")) return;
let key = findKey(e);
if (key === null) return;
if (key.length) {
Expand Down

0 comments on commit 0552670

Please # to comment.