From 75221eab7a3188a92d221b2d0be7a9d082fca31a Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Wed, 1 May 2019 17:54:22 +0200 Subject: sidebar.ts: Extract `key_codes` to module Move this to a separate module as we'll probably want to use the same dictionary of key codes to make other shortcuts. Also fix some syntax while we're at it. --- src/key_codes.ts | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 src/key_codes.ts (limited to 'src/key_codes.ts') diff --git a/src/key_codes.ts b/src/key_codes.ts new file mode 100644 index 0000000..301b44a --- /dev/null +++ b/src/key_codes.ts @@ -0,0 +1,6 @@ +var key_codes: { [index: string]: number } = { + SLASH: 220, + M: 77 +}; + +export default key_codes; -- cgit v1.2.3