on MacOS, Fix not sending ReceivedCharacter event for some key combination#1347
Merged
vbogaevsky merged 4 commits intorust-windowing:masterfrom Jan 14, 2020
Merged
Conversation
Osspial
reviewed
Jan 4, 2020
22a8f6f to
da3cfcf
Compare
vbogaevsky
reviewed
Jan 13, 2020
Contributor
vbogaevsky
left a comment
There was a problem hiding this comment.
On PR branch combinations of cmd, option & ctrl with any symbol keys return KeyboardInput events.
@chrisduerr @jayache80, does this PR resolve your issue?
Contributor
|
I was not able to reproduce, but @jeremydr2 was able to share an event log with the missing events. Maybe he can create another log by running |
|
I hit C-q once. Here are the logs: @vbogaevsky , Looks to me like it works on Mac! |
Contributor
|
Thanks a lot for testing, looks like this should be good to go then! |
vbogaevsky
approved these changes
Jan 14, 2020
kchibisov
added a commit
to kchibisov/winit
that referenced
this pull request
Mar 7, 2020
…y combination (rust-windowing#1347)" This reverts commit 9daa073. This commit introduced other bug rust-windowing#1453 with likely much more common bindings, so reverting it for now. Fixes rust-windowing#1453.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
cargo fmthas been run on this branchcargo docbuilds successfullyCHANGELOG.mdif knowledge of this change could be valuable to usersThis PR fixes #1267
It seems that Ctrl+Q is some prefix key when
hasMarkedTextreturnsNO.For example, it emits '\u{1e}' when input Ctrl+Q and Arrow-up key.
So I modified
hasMarkedTextto returns YES always.I'm not 100% sure about the mean of this change, but I think it's OK because
hasMarkedTextreturns alwaysYESafter inputting Option+N in previous implementation.A key with Command no longer emits ReceivedCharacter event by this change.