MAESTRO: Add unified tab navigation for Cmd+1-9 shortcuts

Update keyboard shortcuts to navigate through unified tab order
(both AI and file tabs) instead of just AI tabs:

- Add navigateToUnifiedTabByIndex() for Cmd+1-9 tab jumping
- Add navigateToLastUnifiedTab() for Cmd+0 (last tab)
- Functions handle AI tabs (clear activeFileTabId) and file tabs
  (preserve activeTabId for easy switching back)
- Update useMainKeyboardHandler to use new unified functions
- Add comprehensive test coverage (18 new tests)
This commit is contained in:
Pedram Amini
2026-02-02 05:11:02 -06:00
parent 92fca4114f
commit 7014c8df66
4 changed files with 400 additions and 5 deletions

View File

@@ -172,6 +172,8 @@ import {
navigateToPrevTab,
navigateToTabByIndex,
navigateToLastTab,
navigateToUnifiedTabByIndex,
navigateToLastUnifiedTab,
getInitialRenameValue,
hasActiveWizard,
} from './utils/tabHelpers';
@@ -12609,6 +12611,8 @@ You are taking over this conversation. Based on the context above, provide a bri
navigateToPrevTab,
navigateToTabByIndex,
navigateToLastTab,
navigateToUnifiedTabByIndex,
navigateToLastUnifiedTab,
setFileTreeFilterOpen,
isShortcut,
isTabShortcut,