aboutsummaryrefslogtreecommitdiff
path: root/src/shared/keys.js
diff options
context:
space:
mode:
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 };