aboutsummaryrefslogtreecommitdiff
path: root/src/shared/utils
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2019-02-15 21:17:25 +0900
committerGitHub <noreply@github.com>2019-02-15 21:17:25 +0900
commit8a0d9e5efb3d82ef23109a1d1fafe2764f1cc281 (patch)
tree801dd1dc096d85b0285f7b4cfe1881238a5dfffe /src/shared/utils
parent21788740c1d4ee28ce05d6bd09d37901d1d88b68 (diff)
parentfd125422e03cc5c9ee14bd913eea379202e76f9a (diff)
Merge pull request #537 from ueokande/space-key-map
Space key map
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') {