-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Non printable keys like volume up remove the content #3113
Comments
I can confirm the same issue on Linux Mint 18.3 Cinnamon, browsers checked: Chrome & Firefox. For me, the buttons that causes the bug are:
Buttons that do not cause the bug:
|
We need to hardcode so-called "safe keys", unfortunately. You can find them in https://github.com/ckeditor/ckeditor5-typing/blob/a02eab5f73bf2c0288a7149b34424c1badbc380a/src/input.js#L312-L328 and this list isn't complete yet. Actually, I don't think that it ever will be, but fortunately, it's not a critical problem. |
A DUP with some more keys reported in #955. |
Referring to #955 - Windows key does not change anything in the editor. It even isn't caught by the observer. |
Are you sure this is true on all browsers on all platforms? |
No. I don't remember do I check it on Edge (Win 10). |
Because we can easily add the win key and other keys we know are safe to the "safe keys" object and just be future proof. Assuming anything here would have to be backed by serious proofs. Especially that issue like the one with the win key were already reported. |
Fix: Non-printable keys like volume up or the win key will not remove the content anymore. Closes #136.
Are you reporting a feature request or a bug?
Bug
Provide detailed reproduction steps (if any)
Expected result
Text is not removed.
Actual result
Text is removed.
Other details
Other examples keys like:
The text was updated successfully, but these errors were encountered: