mirror of
https://github.com/OpenCut-app/OpenCut.git
synced 2026-07-13 21:52:53 +02:00
fix: skip unknown actions in keyboard shortcuts help
This commit is contained in:
@@ -57,6 +57,9 @@ export function useKeyboardShortcutsHelp() {
|
|||||||
[TActionWithOptionalArgs, string[]]
|
[TActionWithOptionalArgs, string[]]
|
||||||
>) {
|
>) {
|
||||||
const actionDef = ACTIONS[action];
|
const actionDef = ACTIONS[action];
|
||||||
|
if (!actionDef) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
result.push({
|
result.push({
|
||||||
id: action,
|
id: action,
|
||||||
keys,
|
keys,
|
||||||
|
|||||||
Reference in New Issue
Block a user