Repository navigation
Support MacOS Shortcuts for Nav - #21434
Merged
Merged
Conversation
jackfreem
marked this pull request as ready for review
January 6, 2026 20:09
tidy-dev
requested changes
Jan 15, 2026
tidy-dev
left a comment
Contributor
There was a problem hiding this comment.
@jackfreem Thank you for this contribution. I have a couple requests.
- I would like to target this to only adding the handling of the macOS shortcuts and not modifying the wrapping as wrapping behavior needs discussed with the team. (Thanks for trying to help on that tho. ❤️ )
- It looks like we are copying the arrow up/down logic and putting it in a new
ifblock multiple times. I think we could simplify this by making a helper method to share across these list components ofisUpKeyEventandisDownKeyEventthat checks if it is theArrowUp/Downor the macOS shortcut and then proceeding with the appropriate movement logic.
Contributor
Author
|
@tidy-dev Just following up on this PR. I’ve addressed the feedback from the previous review, would you mind taking another look when you have a chance? |
jackfreem
force-pushed
the
jf/NavHotkeysOnMac
branch
from
September 22, 2026 19:33
f03928b to
ea098b0
Compare
Contributor
There was a problem hiding this comment.
🟡 Changes recommended
Ctrl+P/N still wrap ordinary lists and cycle through the filter textbox at boundaries instead of stopping at the first or last row.
3 open issues
What changed in this PR
Adds macOS Ctrl+P/Ctrl+N navigation to GitHub Desktop’s shared list components, addressing #7266 and continuing the work from #8412.
Changes:
- Introduces shared predicates for arrow keys and macOS Ctrl+P/N.
- Uses these predicates in standard and sectioned list navigation.
- Extends filtered lists’ keyboard handling and filter-focus transitions.
| File | Description |
|---|---|
app/src/ui/lib/section-filter-list.tsx |
Adds shortcut handling to sectioned filters and boundary focus transitions. |
app/src/ui/lib/list/selection.ts |
Defines shared up/down keyboard predicates. |
app/src/ui/lib/list/section-list.tsx |
Recognizes the shortcuts in sectioned list selection. |
app/src/ui/lib/list/list.tsx |
Recognizes the shortcuts in standard list selection. |
app/src/ui/lib/filter-list.tsx |
Updates filter navigation and boundary focus handling. |
app/src/ui/lib/augmented-filter-list.tsx |
Extends augmented sectioned filters with shortcut handling. |
Review effort: Balanced
Co-authored-by: Copilot App <[email protected]>
tidy-dev
approved these changes
Nov 24, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Closes #7266
Description
Test cases:
Not implemneted
Screenshots
Desktop.Mac.Hotkeys.Demo.mov
Release notes
Notes:
[macOS] Added Ctrl+P/N shortcuts for navigating lists