-
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
Distraction free mode: Keyboard shortcut not working #47873
Comments
I'm able to reproduce in ubuntu 18.04; Gutenberg 15.0.1; WordPress 6.1; nothing happens with the Ctrl + Shift + \ key. |
On a Mac the |
Thank you for the test! I think the problem may be related to the keyboard layout. I used JavaScript Key Code Event Tool to get a event dump. My Japanese keyboard layout showed the following results. Just press the {
"key": "\\",
"keyCode": 226,
"which": 226,
"code": "IntlRo",
"location": 0,
"altKey": false,
"ctrlKey": false,
"metaKey": false,
"shiftKey": false,
"repeat": false
} Hold down {
"key": "_",
"keyCode": 226,
"which": 226,
"code": "IntlRo",
"location": 0,
"altKey": false,
"ctrlKey": true,
"metaKey": false,
"shiftKey": true,
"repeat": false
} You can confirm that the value of On my Japanese keyboard, if I press the I will look into this a bit more to see what approach would be appropriate. |
Okay, perhaps the problem could be that the Here is what I have found out (on Windows):
Windows Japanese Keyboard LayoutWindows English Keyboard Layout |
Description
Related to: #41740
Pressing the shortcut key indicated in the options menu does not switch to the distraction-free mode.
Shortcuts to switch to full-screen mode or to the code editor both work correctly. I tested on Windows, but would be happy if someone could test to see if this problem reproduces on a Mac as well.
Step-by-step reproduction instructions
Ctrl
+Shift
+\
key (This is a shortcut for Windows) .Screenshots, screen recording, code snippet
debc0d120fbe639205782314a8d2901c.mp4
Environment info
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: