aboutsummaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2018-09-17 10:30:15 +0900
committerGitHub <noreply@github.com>2018-09-17 10:30:15 +0900
commitf263e777ef3bf3aeff52ede881647f2e1aa308ea (patch)
treecea5d77fba8850a54289c8c6666782c325319785 /src/shared
parentdd5d800e97f541851c149ce1db295da044313315 (diff)
parent6d45d72766793f58d10506ca687b2a6668bf8fbc (diff)
Merge pull request #465 from Stefanough/correct_modifierdKeyName_20180830
rename modifierdKeyName to modifiedKeyName
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/utils/keys.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/shared/utils/keys.js b/src/shared/utils/keys.js
index 8a86dfb..85779c0 100644
--- a/src/shared/utils/keys.js
+++ b/src/shared/utils/keys.js
@@ -1,4 +1,4 @@
-const modifierdKeyName = (name) => {
+const modifiedKeyName = (name) => {
if (name.length === 1) {
return name;
} else if (name === 'Escape') {
@@ -8,7 +8,7 @@ const modifierdKeyName = (name) => {
};
const fromKeyboardEvent = (e) => {
- let key = modifierdKeyName(e.key);
+ let key = modifiedKeyName(e.key);
let shift = e.shiftKey;
if (key.length === 1 && key.toUpperCase() === key.toLowerCase()) {
// make shift false for symbols to enable key bindings by symbold keys.
@@ -17,7 +17,7 @@ const fromKeyboardEvent = (e) => {
}
return {
- key: modifierdKeyName(e.key),
+ key: modifiedKeyName(e.key),
repeat: e.repeat,
shiftKey: shift,
ctrlKey: e.ctrlKey,