After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 787769 - retro-gtk: Keyboard keys can be stuck
retro-gtk: Keyboard keys can be stuck
Status: RESOLVED FIXED
Product: gnome-games
Classification: Core
Component: retro-gtk
unspecified
Other Linux
: Normal normal
: ---
Assigned To: GNOME Games maintainers
Depends on:
Blocks:
 
 
Reported: 2017-09-16 19:12 UTC by Adrien Plazas
Modified: 2017-09-17 07:43 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
core-view: Reset inputs when losing focus (1.20 KB, patch)
2017-09-17 07:42 UTC, Adrien Plazas
committed Details | Review

Description Adrien Plazas 2017-09-16 19:12:51 UTC
Sometimes when playing with the keyboard, keyboard keys tend to be "stuck".

It seems that it is caused by some key presses being caught by the widget but not the corresponding releases. I suspect this to happen when the views looses focus, for example because the header bar appeared and stole the focus.

To fix this I suggest to consider all keys to be released when the CoreView loses the focus.
Comment 1 Adrien Plazas 2017-09-17 07:42:12 UTC
Created attachment 359919 [details] [review]
core-view: Reset inputs when losing focus

This avoids key to appear as stuck by receiving the key press event but
not the corresponding key release event.
Comment 2 Adrien Plazas 2017-09-17 07:43:18 UTC
Attachment 359919 [details] pushed as 3296f08 - core-view: Reset inputs when losing focus