aboutsummaryrefslogtreecommitdiff
path: root/src/shared/utils
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2019-02-11 20:19:34 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2019-02-11 20:19:34 +0900
commitfd125422e03cc5c9ee14bd913eea379202e76f9a (patch)
tree801dd1dc096d85b0285f7b4cfe1881238a5dfffe /src/shared/utils
parent1731bf1f5f9b0327aba3ec71b9b2a395404719d0 (diff)
Enable to bind space key
Diffstat (limited to 'src/shared/utils')
-rw-r--r--src/shared/utils/keys.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/shared/utils/keys.js b/src/shared/utils/keys.js
index 4579fde..f024069 100644
--- a/src/shared/utils/keys.js
+++ b/src/shared/utils/keys.js
@@ -1,4 +1,7 @@
const modifiedKeyName = (name) => {
+ if (name === ' ') {
+ return 'Space';
+ }
if (name.length === 1) {
return name;
} else if (name === 'Escape') {