You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
On macOS, releasing a key while holding command does not send event #623
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:
Run cargo run --example window
Hold the command key
Press and release the H (or any other) key twice
Expected result:
There should be two released events printed to the console, in between the pressed events.
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.
Activity
felixrabe commentedon Aug 9, 2018
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.
mistodon commentedon Aug 9, 2018
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.
felixrabe commentedon Aug 9, 2018
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.
sodiumjoe commentedon Aug 14, 2018
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.