-
Notifications
You must be signed in to change notification settings - Fork 538
support keyboard-first navigation #3963
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
a5321d8
a0a9f88
d54d2c7
e5dbecc
04276d1
da07a02
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -931,7 +931,7 @@ function useTabsShortcuts() { | |
| ); | ||
|
|
||
| useHotkeys( | ||
| "mod+alt+left", | ||
| "meta+alt+left", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🔴 Changing The hotkey for switching between top-level tabs was changed from Root Cause and ImpactOn macOS this change has no effect (both Every other hotkey in this file ( Impact: Top-level tab navigation via keyboard is completely broken on Windows/Linux. Prompt for agentsWas this helpful? React with 👍 or 👎 to provide feedback.
ComputelessComputer marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| () => selectPrev(), | ||
| { | ||
| preventDefault: true, | ||
|
|
@@ -942,7 +942,7 @@ function useTabsShortcuts() { | |
| ); | ||
|
|
||
| useHotkeys( | ||
| "mod+alt+right", | ||
| "meta+alt+right", | ||
| () => selectNext(), | ||
| { | ||
| preventDefault: true, | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚩 ctrl+alt+left/right hotkey collision between AI/Settings sub-tabs and note-input tabs
The new
ctrl+alt+left/righthotkeys added here and insettings.tsx:104-131use the same key combination as the pre-existing hotkeys inapps/desktop/src/components/main/body/sessions/note-input/index.tsx:352-394. Inreact-hotkeys-hook, all mounted handlers for the same key fire. If both the AI/Settings view and the note-input view are mounted simultaneously (e.g., multiple tabs rendered in the DOM), pressingctrl+alt+leftwould trigger both handlers. However, based on the tab rendering pattern (conditional rendering with{activeTab === ...}), only the active tab's content component should be mounted, which likely prevents the conflict. This warrants investigation to confirm that inactive tab content is truly unmounted rather than hidden.Was this helpful? React with 👍 or 👎 to provide feedback.