-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
The getEnvKeystrokeText
utility breaks for certain combos starting in v26
#10439
Comments
Hi! Thanks for the report. It seems that For now, you can add it on your own by adding them manually to the keyCodes[ '[' ] = 219;
keyCodes[ ']' ] = 221;
I've checked it at versions < 26.0.0 and it seems to behave the same, so it doesn't seem to be a regression. |
@Mgsy that seems to patch the runtime parsing error. However EditingKeystrokeHandler still seems to be affected as setting the corresponding UI shortcuts results in |
This history is documented in zendeskgarden/ckeditor#17. What am I missing? |
Thanks for the details! I've checked it once again and indeed, |
We can go in two directions:
I'm for the latter to be consistent. If we went with the first option, So the characters to add, at least looking at my keyboard layout: I simply went through all the special characters on my keyboard. We should also scan 2-3 other common keyboard layouts. Question: How to support characters that require Shift? E.g. |
BTW, @jzempel, are you sure that you want to override Cmd+[? This keystroke is used by some people to navigate back/forth in the browser history. |
Since this is the first issue in this category for a long time, let's ignore these doubts for now. Let's:
|
Fix(utils): Adds more known key codes. For instance, to allow `Ctrl+]` keystroke. Closes #10439.
📝 Provide detailed reproduction steps (if any)
Prevents Zendesk Garden from updating the demo Editor.
✔️ Expected result
Successfully parse this common keystroke for indent/outdent. This used to work in v25.
❌ Actual result
❓ Possible solution
Debug changes made in v25.0.0...v26.0.0#diff-8a8feb9905511e353215fac103af1ff8dbf4ed40e7e24d3994c63e28f1a8f756.
📃 Other details
Possibly related to #9412
If you'd like to see this fixed sooner, add a 👍 reaction to this post.
The text was updated successfully, but these errors were encountered: