aboutsummaryrefslogtreecommitdiff
path: root/src/util/keycodes.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/keycodes.ts')
-rw-r--r--src/util/keycodes.ts2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/util/keycodes.ts b/src/util/keycodes.ts
index 2445eaf..68be059 100644
--- a/src/util/keycodes.ts
+++ b/src/util/keycodes.ts
@@ -4,7 +4,5 @@ const VIRTUAL_KEY_CODES: Readonly<Record<string, number>> = {
Home: 36, End: 35, PageUp: 33, PageDown: 34,
};
-export const SPECIAL_KEYS: ReadonlyArray<string> = Object.keys(VIRTUAL_KEY_CODES);
-
export const virtualKeyCode = (key: string): number =>
VIRTUAL_KEY_CODES[key] ?? (key.length === 1 ? key.charCodeAt(0) : 0);