-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
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
[Input] Fix Unicode character input with Alt / Ctrl modifiers. #56695
Conversation
In addition to this, it might be a good idea to change And maybe also replace |
Do you think we could do this in a way where we still have one function, even if it requires a boolean or extra field in InputEvent? I am afraid that having an extra function like this may be very confusing when looking at the API. |
Like calling With the single
There's nothing special about |
As discussed on IRC. I think if we want shortcuts to happen before, it seems like a cleaner solution to have a |
8f17d42
to
1631cb2
Compare
Updated as discussed. Now, unhandled input is processed in the following order:
|
@bruvzg Its a bit difficult to see in the PR to see if all the cases where the callback was replaced were only (or mostly) intended to process shortcuts, it does look OK it to me but just confirming that was your intention. |
…nicode character input with Alt / Ctrl modifiers, after processing of shortcuts.
1631cb2
to
d1207a0
Compare
All |
@bruvzg Fantastic work!! Love how much cleaner everything is now. |
Thanks! |
unhandled_unicode_input
input processing step to process Unicode character input with Alt / Ctrl modifiers, after processing of shortcuts.Alternative to #52452
This will prevent both shortcut and input to trigger simultaneously, by adding an extra processing step (shortcuts are handled in the
unhandled_key_input
). e.g., By defaultAlt + F
won't inputƒ
in the code editor (since it is a shortcut for Fold Line), but will work in any other Line/TextEdit.Should not break any other input, since it's not changing existing code, new processing is done only if event is not handed.
Fixes #6851, fixes #54303, fixes #56319.