summaryrefslogtreecommitdiff
path: root/apps/web/src/hooks
diff options
context:
space:
mode:
authorKha Nguyen <hi@khanguyen.com>2025-07-22 19:02:37 -0500
committerKha Nguyen <hi@khanguyen.com>2025-07-22 19:19:43 -0500
commitf3d5eb9d08ed681977a4dd06fcacb0407be17384 (patch)
treefe9879a2578927231210573713be2d95ea0caadc /apps/web/src/hooks
parenta434459a9c0b88c158c3d7470740d90a263f29f2 (diff)
downloadopencut-f3d5eb9d08ed681977a4dd06fcacb0407be17384.tar.gz
refactor: clean up key mapping logic for human-readable shortcuts
Diffstat (limited to 'apps/web/src/hooks')
-rw-r--r--apps/web/src/hooks/use-keyboard-shortcuts-help.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/web/src/hooks/use-keyboard-shortcuts-help.ts b/apps/web/src/hooks/use-keyboard-shortcuts-help.ts
index 808bf25f..2f1a4d4a 100644
--- a/apps/web/src/hooks/use-keyboard-shortcuts-help.ts
+++ b/apps/web/src/hooks/use-keyboard-shortcuts-help.ts
@@ -71,10 +71,10 @@ const formatKey = (key: string): string => {
.replace("ctrl", getPlatformSpecialKey())
.replace("alt", getPlatformAlternateKey())
.replace("shift", "Shift")
- .replace("left", "ArrowLeft")
- .replace("right", "ArrowRight")
- .replace("up", "ArrowUp")
- .replace("down", "ArrowDown")
+ .replace("left", "←")
+ .replace("right", "→")
+ .replace("up", "↑")
+ .replace("down", "↓")
.replace("space", "Space")
.replace("home", "Home")
.replace("end", "End")