summaryrefslogtreecommitdiff
path: root/apps/web
diff options
context:
space:
mode:
authorKha Nguyen <hi@khanguyen.com>2025-07-22 19:12:57 -0500
committerKha Nguyen <hi@khanguyen.com>2025-07-22 19:19:43 -0500
commitf98651cd331c0753e9d13015bf07dad8d0c98047 (patch)
tree4255d8dd50876e4c56dd85e72c6b035294d3aa32 /apps/web
parent771591bdfadab00fa238e1b160eec600824c7786 (diff)
downloadopencut-f98651cd331c0753e9d13015bf07dad8d0c98047.tar.gz
fix: add reset button for custom shorcuts
Diffstat (limited to 'apps/web')
-rw-r--r--apps/web/src/components/keyboard-shortcuts-help.tsx7
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/web/src/components/keyboard-shortcuts-help.tsx b/apps/web/src/components/keyboard-shortcuts-help.tsx
index db31c527..8b4c6274 100644
--- a/apps/web/src/components/keyboard-shortcuts-help.tsx
+++ b/apps/web/src/components/keyboard-shortcuts-help.tsx
@@ -6,6 +6,7 @@ import {
Dialog,
DialogContent,
DialogDescription,
+ DialogFooter,
DialogHeader,
DialogTitle,
DialogTrigger,
@@ -127,6 +128,7 @@ export const KeyboardShortcutsHelp = () => {
validateKeybinding,
getKeybindingsForAction,
setIsRecording,
+ resetToDefaults,
} = useKeybindingsStore();
// Get shortcuts from centralized hook
@@ -240,6 +242,11 @@ export const KeyboardShortcutsHelp = () => {
</div>
))}
</div>
+ <DialogFooter>
+ <Button size="sm" className="mt-4" onClick={resetToDefaults}>
+ Reset to Defaults
+ </Button>
+ </DialogFooter>
</DialogContent>
</Dialog>
);