summaryrefslogtreecommitdiffstatshomepage
path: root/frontend/src/lib/Shortcuts.ts
diff options
context:
space:
mode:
authorWolfgang Müller2025-02-20 16:09:08 +0100
committerWolfgang Müller2025-02-21 12:12:48 +0100
commit000a1e8a33ac3f1dea00ca21aac0f1771a0325f0 (patch)
tree66a9679a3f2d8f2833afa62101fb58e92adf4e6e /frontend/src/lib/Shortcuts.ts
parent18c8719b74b1510ad82b686333071bcc10d68e30 (diff)
downloadhircine-000a1e8a33ac3f1dea00ca21aac0f1771a0325f0.tar.gz
frontend: Rework and improve accelerators
This commit switches around a couple of existing accelerators to make them easier to activate with just the left hand on the keyboard and more easily allow the addition of accelerators for all filter fields.
Diffstat (limited to 'frontend/src/lib/Shortcuts.ts')
-rw-r--r--frontend/src/lib/Shortcuts.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/frontend/src/lib/Shortcuts.ts b/frontend/src/lib/Shortcuts.ts
index 1ff7679..82f19ac 100644
--- a/frontend/src/lib/Shortcuts.ts
+++ b/frontend/src/lib/Shortcuts.ts
@@ -31,7 +31,7 @@ type UppercaseLetter = Uppercase<LowercaseLetter>;
type Letter = LowercaseLetter | UppercaseLetter;
type Special = '?' | 'Enter' | 'Escape' | 'Delete';
-const modeSwitches = ['n', 'g', 'i'] as const;
+const modeSwitches = ['n', 'g', 'i', 'e'] as const;
type ModeSwitch = (typeof modeSwitches)[number];
function isModeSwitch(s: string): s is ModeSwitch {