diff options
author | Wolfgang Müller | 2025-02-20 16:09:08 +0100 |
---|---|---|
committer | Wolfgang Müller | 2025-02-20 19:51:39 +0100 |
commit | b028f5337ed8525e29247974636f9e7757900f65 (patch) | |
tree | 4026a018c3134f39475c4664a5486dd832fc79f7 /frontend/src/lib/Shortcuts.ts | |
parent | 18c8719b74b1510ad82b686333071bcc10d68e30 (diff) | |
download | hircine-b028f5337ed8525e29247974636f9e7757900f65.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.ts | 2 |
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 { |