-
Notifications
You must be signed in to change notification settings - Fork 948
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
On macOS, releasing a key while holding command does not send event #623
Comments
I can reproduce this on macOS 10.13 with master (b2b740f) when I press "Cmd-P" (Cmd down, P down, P up, Cmd up):
Which is: Cmd-pressed, P-pressed, P-received, Cmd-released. Expected: Cmd-pressed, P-pressed, P-received, P-released, Cmd-released. (RWin and LWin are weird too btw., especially as I'm pressing the opposite Cmd: LeftCmd = RWin and RightCmd = LWin. Separate issue.) When I press just P (P down, P up), I get:
Which is as expected: P-pressed, P-received, P-released. |
I see the same issue with LeftCmd being RWin and vice-versa. I can open a separate issue for that if it would be helpful. |
I'm currently not working on keyboard-handling code, but when I do (maybe in a week or so), I might give this a shot. |
y'all mind trying this branch: #629 ? It doesn't fix the switched Lcmd/Rwin thing, but it seems to fix the key release event. I couldn't find any adverse side effects, but any more testing would be appreciated. |
When I press and released a key, while holding the command key, on macOS (10.13.3) - I get the pressed event, but no corresponding released event. When not holding the command key (even if other modifier keys are held) the released event appears to fire correctly.
Steps to reproduce:
cargo run --example window
Expected result:
There should be two released events printed to the console, in between the pressed events.
Actual result:
No release events are sent:
I
git bisect
ed and got dec728c as the first commit with the issue - hopefully that helps.The text was updated successfully, but these errors were encountered: