aboutsummaryrefslogtreecommitdiff
path: root/src/shared/utils
diff options
context:
space:
mode:
authorStefan <stefan.armijo@gmail.com>2018-08-30 19:14:11 -0700
committerStefan <stefan.armijo@gmail.com>2018-08-30 19:14:11 -0700
commit6d45d72766793f58d10506ca687b2a6668bf8fbc (patch)
tree8c2c6e4ed4d52bca7f7e302baf3fc7cf3d4ea6ce /src/shared/utils
parent1b7784638230dc4960c130181a3e008c96ebfebe (diff)
rename modifierdKeyName to modifiedKeyName
Diffstat (limited to 'src/shared/utils')
-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,