Fixed duplicate key events on macOS#764
Conversation
|
Thanks for the PR! For me, this change prevents me from getting Cmd+Period key release events, so this doesn't look like the right solution. Also, pinging @sodiumjoe since you wrote that code. The way we currently handle Cmd weirdness isn't too great. I tried to come up with something more idiomatic while working on
@nolanderc if you try running |
|
I can confirm that the changes work for me. This is the output of However, I am using a Dvorak layout (as they were in #734). When I run the same example using Qwerty I get this instead: I can replicate the behaviour of Qwerty using Dvorak by pressing This leads me to think that these issues might be related to #752 and #755. When checking if Additionally (assuming a Qwerty layout), pressing |
|
I did some more testing. Querying Cocoa for the actual character being pressed instead of the scancode resolves the issue with both Dvorak and Qwerty. This works because we are not interested in the physical key being pressed, but the symbolic meaning of |
|
Hey, @nolanderc, this PR has fallen out of date. Can you rebase this against master and file a new PR? That way we can get some of our MacOS testers testing it. Anyways, I'm closing this PR. Thanks. |
Fixes the issue described in #734 using the suggested solution.
CHANGELOG.mdif knowledge of this change could be valuable to users