-
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
Block Editor: CTRL + S is not working anymore if the keyboard language is not English! #38230
Comments
@annezazu I was even writing a post when I received the update notification. I saved the changes using the shortcut and updated WordPress, then I came back to continue writing when I found that the shortcut is not working anymore. I opened a different browser, cleared all cache, tried different posts and the result is still the same! |
Thanks so much for following up with more context! |
I tried replicating this but was unable to: Screen.Recording.2022-01-26.at.12.55.50.PM.movFlagging in core-test to see if we can get more help replicating! |
I have retested it on a different English WordPress site, a different Windows 10 PC, and I still have the same problem. |
I was unable to replicate this issue with the following test parameters:
Something that did come up, which I hadn't initially considered, is that the location of "S" can change between keyboard layouts. On the US keyboard S is the 2nd character key from the left in the middle row. However, in the Colemak layout, this shifts to the 3rd key from the left. For instance: So on Colemak, I needed to press Command + (3rd key from the left) to correctly Save. Back to the Arabic layouts, I tried both the standard Arabic and "Arabic - QWERTY" input sources (out of the five available in macOS), but the primary (non-shifted) character in that 2nd position appears to remain the same: س. It appears, on macOS at least, that the mapping of "S" on these Arabic layouts is consistent with the 2nd position. I think it would help to have some additional Windows 10/11 users test this out. I will also reach out to the #core-i18n team to find out if 5.9 introduced any changes to key codes that could be at play here. |
I can replicate this on Windows 11, on both Chrome and Firefox, with the keyboard layout set to "Arabic (Bahrain)". Instead of saving the post, Ctrl + S opens a "Save as" system dialog. |
Moving this to the 5.9.x board just in case this can be tracked down :) Thank you all so much for helping test. |
Update: it seems that all Editor keyboard shortcuts are not working too. I can confirm that the following shortcuts are not working:
|
Testing. WP 5.9.1. Theme: Just updated Twenty Twenty Two. Creating a new page. CTRL (command) + Z = Undo works. All 3 shortcuts worked on my Macbook Pro running OSX 12.2.1. |
Hi! Could you share what you see when you press S here? https://www.toptal.com/developers/keycode The most useful information would be under "Event dump" |
I've just tried with an arabic keyboard on Mac OS, |
Description
After updating to version 5.9 the
CTRL + S
shortcut is no longer working if the keyboard language is not English.If the keyboard language is set to English, it saves changes as usual, but If I switch keyboard language to another language (i.e. Arabic) the shortcut is not captured by WordPress, and the browser's save page as window appears instead.
Step-by-step reproduction instructions
CTRL + S
.Screenshots, screen recording, code snippet
No response
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: