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
What happens when a key is held while a window loses focus? E.g. on X11 a synthetic key up event is received while on MacOS a key up event is received when the user releases the key. The behavior also seems to differ between modifier and normal keys.
Winit should document how window focus influences what key events get send and how this differs between platforms.
The general rule of thumb is assume that everything is lifted upon a lose of focus and on re-enter you should never reprocess anything.
I'm not so sure if winit should explicitly document emit releases other than making people assume that everything is lifted though. Or at least it should do that in the way that doesn't bleed into regular input processing.
I'm pretty sure that modifiers are documented and behave more or less consistently. The modifiers are assumed empty when the focus is left, though it might get adjusted in the future a bit.
What happens when a key is held while a window loses focus? E.g. on X11 a synthetic key up event is received while on MacOS a key up event is received when the user releases the key. The behavior also seems to differ between modifier and normal keys.
Winit should document how window focus influences what key events get send and how this differs between platforms.
See also #3543
The text was updated successfully, but these errors were encountered: