CMD + OPTOIN + SHIFT + M not exiting code editor #49841
Labels
[Package] Editor
/packages/editor
[Package] Keyboard Shortcuts
/packages/keyboard-shortcuts
[Type] Enhancement
A suggestion for improvement.
Description
The combination of keys to show the code editor is the same as the one to exit it.
CMD + OPTOIN + SHIFT + M (on Mac)
If you use it to enter into the code view and you hit the exact key combination again, it won't exit it.
It forces you to first focus the editor so you have to click with the mouse somewhere and then hit the keys.
I feel like this shouldn't behave this way.
The editor should be focused by default when changing the view so we can use the key combination and toggle between both views faster.
Step-by-step reproduction instructions
Notice it won't work unless you click somewhere on the editor before hitting CMD + OPTOIN + SHIFT + M again.
Screenshots, screen recording, code snippet
No response
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: