Add keyboard shortcuts for Notes feature #72907
Open
+152
−30
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.
What?
closes #72718
Adds keyboard shortcuts for the Notes feature to streamline note creation and sidebar management.
Why?
Currently, creating a new block note requires three clicks: clicking the block, opening the options menu, and clicking "Add note". This PR adds keyboard shortcuts to improve accessibility and workflow efficiency:
This addresses the workflow improvement request and follows patterns used in similar collaborative tools like Google Docs.
How?
register-shortcuts.js:core/editor/add-note:⌘ + Option + M(Mac) /Ctrl + Alt + M(Windows/Linux)core/editor/toggle-notes-sidebar:⌘ + Option + N(Mac) /Ctrl + Alt + N(Windows/Linux)notes-sidebar.jsusing theuseShortcuthookNfor toggle to avoid conflict with⌘ + Shift + M(code editor toggle)Testing Instructions
Testing "Add Note" shortcut (
⌘ + Option + M)⌘ + Option + M(Mac) orCtrl + Alt + M(Windows/Linux)⌘ + Option + MagainTesting "Toggle Notes Sidebar" shortcut (
⌘ + Option + N)⌘ + Option + N(Mac) orCtrl + Alt + N(Windows/Linux)Testing with existing notes
⌘ + Option + M/Ctrl + Alt + MTesting edge cases
⌘ + Option + Mwithout selecting any block⌘ + Option + Nin Code Editor modeTesting Instructions for Keyboard
Taband arrow keys⌘ + Option + M/Ctrl + Alt + MTabto navigate to "Add note" button and pressEnter⌘ + Option + N/Ctrl + Alt + NShift + Option + H(Mac) orShift + Alt + H(Windows/Linux) to open keyboard shortcuts helpScreenshots or screencast
Screen.Recording.2025-11-02.at.8.48.12.PM.mov
Related
Addresses workflow improvement for the Notes feature by reducing friction in the note creation process.