aboutsummaryrefslogtreecommitdiff
path: root/src/shared/keys.js
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2017-10-03 20:58:50 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2017-10-03 20:58:50 +0900
commit5ac1f60ece0a112a55f329ed34b455dcc776b22c (patch)
tree1c901a6529fd50b9e62d50a2131c3043ccfb5079 /src/shared/keys.js
parenteff8d9a83edf63bab09df4bd7f6e20e85fba3899 (diff)
remove deprecated property in KeyboardEvent
Diffstat (limited to 'src/shared/keys.js')
-rw-r--r--src/shared/keys.js21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/shared/keys.js b/src/shared/keys.js
deleted file mode 100644
index aca050e..0000000
--- a/src/shared/keys.js
+++ /dev/null
@@ -1,21 +0,0 @@
-const asKeymapChars = (keys) => {
- return keys.map((k) => {
- let c = String.fromCharCode(k.code);
- if (k.ctrl) {
- return '<C-' + c.toUpperCase() + '>';
- }
- return c;
- }).join('');
-};
-
-const asCaretChars = (keys) => {
- return keys.map((k) => {
- let c = String.fromCharCode(k.code);
- if (k.ctrl) {
- return '^' + c.toUpperCase();
- }
- return c;
- }).join('');
-};
-
-export { asKeymapChars, asCaretChars };