aboutsummaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2020-02-09 09:32:27 +0900
committerGitHub <noreply@github.com>2020-02-09 09:32:27 +0900
commit8b9388f6e60fe67d20638f55aecb0ed1b281871a (patch)
tree9fa6491a7e9d404351fe5cf436754b44fa713b0d /src/shared
parentf27cff5083b8ea7a6c316f4ed31ed6507bc99dc0 (diff)
parent0263170bd2603165edecce1b55493c7b2092e2e6 (diff)
Merge pull request #709 from ueokande/blur-keys-on-blur
Clear keys on window blur
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/settings/Key.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/settings/Key.ts b/src/shared/settings/Key.ts
index cfe1e7e..1464e57 100644
--- a/src/shared/settings/Key.ts
+++ b/src/shared/settings/Key.ts
@@ -60,7 +60,7 @@ export default class Key {
}
isDigit(): boolean {
- return digits.includes(this.key);
+ return digits.includes(this.key) && !this.ctrl && !this.alt && !this.meta;
}
equals(key: Key) {