Notes: Add keyboard shortcuts for the display modes - #82973
adamsilverstein wants to merge 7 commits into
Conversation
Reinstates the access+E / access+I / access+J shortcuts split out of #76024 so the combinations can be discussed on their own. Each choice in the Notes submenu advertises its shortcut. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01H22PasvCsxDt17L7sQfa5f
Mapping the three shortcuts into one object inside useSelect is the shape the data package warns about; each choice now selects its own memoized shortcut directly. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01H22PasvCsxDt17L7sQfa5f
🤖 PR meta 🤖📦 Bundle sizeSize Change: +187 B (0%) Total Size: 8.22 MB 📦 View Changed
⚡ PerformanceShow the resultsClient side metrics exclude the server response time. front-end-block-theme
front-end-classic-theme
media-processing
media-upload
post-editor
site-editor
🏁 Flaky testsShow the failuresSome tests passed with failed attempts. The failures may not be related to this commit but are still reported for visibility. See the documentation for more information. Should navigate inner blocks with arrow keys in
|
…o add/notes-display-mode-shortcuts
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
…o add/notes-display-mode-shortcuts
Summary
Follow up to #76024 and stacked on its branch, so the diff here includes the display modes until that PR lands.
Adds keyboard equivalents for the three choices in the Notes submenu of the Options menu:
access+Eexpands notes,access+Iminimizes them andaccess+Jhides them (accessis Ctrl+Option on macOS and Shift+Alt elsewhere). Each choice in the submenu advertises its combination, and the shortcuts register in the global category so they show up in the Keyboard shortcuts help modal.@Mamaduka suggested splitting these out of #76024 so the combinations can be discussed on their own without holding up the display modes, see #76024 (comment). The
useSelectmapping flagged in the same review is reworked here as well: each choice selects its own memoized shortcut instead of mapping all three into one object.Question: are
access+E,access+Iandaccess+Jthe right combinations?accesscombos are less likely to collide with native browser shortcuts thanprimaryones, but nothing here is set in stone. Command palette integration could be a follow up once these settle.Test plan
access+I: the floating notes collapse to avatar pills.access+J: the notes hide and the reserved canvas space is released.access+E: the full floating notes come back.access+Hto open the Keyboard shortcuts modal and confirm the three entries in the Global shortcuts section.AI Use
Claude Code drafted the code and this description, I steered. I will review and test.
🤖 Generated with Claude Code
https://claude.ai/code/session_01H22PasvCsxDt17L7sQfa5f