summaryrefslogtreecommitdiff
path: root/apps/web/src/hooks
diff options
context:
space:
mode:
authorMaze Winther <mazewinther@gmail.com>2026-04-15 03:47:57 +0200
committerMaze Winther <mazewinther@gmail.com>2026-04-15 03:47:57 +0200
commit4e8b7d3745720ec0a63ad164ae8f22074ddd82f9 (patch)
treea35382f5e53be0601826a69ed02c5bfe2a0d1898 /apps/web/src/hooks
parentee372266ca43798a4e1ef062bfcbf7fa74339d17 (diff)
downloadopencut-4e8b7d3745720ec0a63ad164ae8f22074ddd82f9.tar.gz
fix: skip unknown actions in keyboard shortcuts help
Diffstat (limited to 'apps/web/src/hooks')
-rw-r--r--apps/web/src/hooks/use-keyboard-shortcuts-help.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/apps/web/src/hooks/use-keyboard-shortcuts-help.ts b/apps/web/src/hooks/use-keyboard-shortcuts-help.ts
index 7ea3a555..9a2f6cf5 100644
--- a/apps/web/src/hooks/use-keyboard-shortcuts-help.ts
+++ b/apps/web/src/hooks/use-keyboard-shortcuts-help.ts
@@ -57,6 +57,9 @@ export function useKeyboardShortcutsHelp() {
[TActionWithOptionalArgs, string[]]
>) {
const actionDef = ACTIONS[action];
+ if (!actionDef) {
+ continue;
+ }
result.push({
id: action,
keys,