Fix close-tab shortcut remapping
Closed
AU
2mo ago+6+6+0123456789-6-6-0123456789
Summary
- Registers
closeTabas a remappable action inKeyboardShortcutSettingsso Cmd+W respects user-configured shortcuts - Updates
AppDelegateinterceptor to use the remapped shortcut instead of a hardcoded Cmd+W check - Wires up
closeTabMenuShortcutin the File menu viasplitCommandButtonso the menu item reflects the remap - Replaces hardcoded command palette hints for Close Tab / Close Workspace with dynamic shortcut lookup
Fixes #1710
Test plan
- Default behavior: Cmd+W still closes the focused tab
- Remap close-tab to a different shortcut in settings, verify the new shortcut closes tabs and the menu item updates
- Verify the command palette shows the remapped shortcut hint for Close Tab / Close Workspace
- Verify Cmd+W in browser popup windows still works as a fallback
🤖 Generated with Claude Code
Summary by cubic
Make Close Tab respect user-remapped shortcuts across the app. Updates the interceptor, File menu, and command palette to use the dynamic shortcut. Fixes #1710.
- Bug Fixes
- Registered Close Tab as a remappable action in
KeyboardShortcutSettings. - Interceptor now matches the remapped Close Tab shortcut (with Cmd+W fallback for browser popups).
- File menu Close Tab uses
splitCommandButtonwith the decoded shortcut (no hardcoded ⌘W). - Command palette maps
palette.closeTabandpalette.closeWorkspaceto actions and removes hardcoded hints, so execution and hints use dynamic lookup.
- Registered Close Tab as a remappable action in
Summary by CodeRabbit
- Bug Fixes
- Improved keyboard shortcut resolution to properly reflect configured settings for closing tabs and workspaces, ensuring shortcut hints display correctly throughout the application.