summaryrefslogtreecommitdiff
path: root/apps/web/src/stores/keybindings-store.ts
diff options
context:
space:
mode:
Diffstat (limited to 'apps/web/src/stores/keybindings-store.ts')
-rw-r--r--apps/web/src/stores/keybindings-store.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/web/src/stores/keybindings-store.ts b/apps/web/src/stores/keybindings-store.ts
index ed1d6b8c..97cba23f 100644
--- a/apps/web/src/stores/keybindings-store.ts
+++ b/apps/web/src/stores/keybindings-store.ts
@@ -54,7 +54,7 @@ interface KeybindingsState {
// Validation
validateKeybinding: (
key: ShortcutKey,
- action: ActionWithOptionalArgs,
+ action: ActionWithOptionalArgs
) => KeybindingConflict | null;
getKeybindingsForAction: (action: ActionWithOptionalArgs) => ShortcutKey[];
@@ -129,7 +129,7 @@ export const useKeybindingsStore = create<KeybindingsState>()(
validateKeybinding: (
key: ShortcutKey,
- action: ActionWithOptionalArgs,
+ action: ActionWithOptionalArgs
) => {
const { keybindings } = get();
const existingAction = keybindings[key];
@@ -151,7 +151,7 @@ export const useKeybindingsStore = create<KeybindingsState>()(
getKeybindingsForAction: (action: ActionWithOptionalArgs) => {
const { keybindings } = get();
return Object.keys(keybindings).filter(
- (key) => keybindings[key as ShortcutKey] === action,
+ (key) => keybindings[key as ShortcutKey] === action
) as ShortcutKey[];
},
@@ -162,8 +162,8 @@ export const useKeybindingsStore = create<KeybindingsState>()(
{
name: "opencut-keybindings",
version: 1,
- },
- ),
+ }
+ )
);
// Utility functions