aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/GlobalKeyHandler.ts
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-09-12 17:07:59 -0400
committerbob <bcz@cs.brown.edu>2019-09-12 17:07:59 -0400
commit147f1a6bed7f273b6248d55eee670713bfbf5e7d (patch)
treeb4ca57fcac60de10f91919983cfdaa32b0951fbb /src/client/views/GlobalKeyHandler.ts
parent612dbe02514f7f34c066aee3b5dd09c4a99b113a (diff)
better template inferencing support
Diffstat (limited to 'src/client/views/GlobalKeyHandler.ts')
-rw-r--r--src/client/views/GlobalKeyHandler.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/GlobalKeyHandler.ts b/src/client/views/GlobalKeyHandler.ts
index d0464bd5f..f9ee22f61 100644
--- a/src/client/views/GlobalKeyHandler.ts
+++ b/src/client/views/GlobalKeyHandler.ts
@@ -30,7 +30,7 @@ export default class KeyManager {
}
public handle = async (e: KeyboardEvent) => {
- let keyname = e.key.toLowerCase();
+ let keyname = e.key && e.key.toLowerCase();
this.handleGreedy(keyname);
if (modifiers.includes(keyname)) {