Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions src/renderer/hooks/keyboard/useKeyboardNavigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,10 +137,12 @@ export function useKeyboardNavigation(
return false;
}

// Skip if Alt+Cmd+Arrow is pressed (layout toggle shortcut)
const isToggleLayoutShortcut =
e.altKey && (e.metaKey || e.ctrlKey) && (e.key === 'ArrowLeft' || e.key === 'ArrowRight');
if (isToggleLayoutShortcut) return false;
// Skip if Cmd/Ctrl+Arrow is pressed (with or without Alt) — could be a user-configured
// tab navigation shortcut (e.g. Cmd+Left/Right) or layout toggle (Alt+Cmd+Arrow).
// Plain ArrowLeft/Right (no modifiers) is reserved for group collapse/expand.
const isModifiedArrow =
(e.metaKey || e.ctrlKey) && (e.key === 'ArrowLeft' || e.key === 'ArrowRight');
if (isModifiedArrow) return false;
Comment thread
scriptease marked this conversation as resolved.

// Only handle arrow keys and space
if (!['ArrowUp', 'ArrowDown', 'ArrowLeft', 'ArrowRight', ' '].includes(e.key)) {
Expand Down