-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Use the keyboard shortcuts package for the command center #49680
Conversation
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.
Code looks good, works as intended for me.
I'll refer to Alex if he has any input.
Size Change: +268 B (0%) Total Size: 1.37 MB
ℹ️ View Unchanged
|
Flaky tests detected in 4e5923e. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/4665651039
|
Related to #48457
What?
This PR updates the command center to rely on the keyboard shortcuts to define its cmd+k shortcut. This allows the shortcut to work in all operating systems and also it shows the shortcut in the "shortcuts modal" of the editor.
Testing Instructions
1- Open the experiments page and enable the command center.
2- Open the site editor and focus the page.
3- Use cmd+k or ctrl+k (I guess) depending on your operating system (you might want to check the right combination in the keyboard shortcuts modal)
4- The command center should show up.