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
Key presses report "virtual" key presses (including repetition), not physical key down events #558
Glutin currently supports key press events and key release events. But (on Windows at least), key press events correspond to the virtual key presses that the OS does, including the repeated presses that occur when you hold the key down. I would really like to be able to get actual physical key down events as well, and distinguish between "presses" and key down events. At the moment, you can get more key press events than release events due to press repetition. I need this distinction for integration with the Chromium Embedded Framework, which has three types of key event - up, down and press.
The ElementState enum currently contains Pressed and Released. Ideally it would change to Pressed, Down and Up. This would be a breaking change, but easy to correct in user applications.
Activity
dylanede commentedon Aug 3, 2015
I would also like to add that this is not a blocking issue for CEF, since the behaviour can be emulated by tracking key state.
Limeth commentedon Sep 3, 2016
I am not sure, but I think this also causes
LAltnot to function on Windows.tomaka commentedon Nov 3, 2016
Closing for rust-windowing/winit#52