Re: [hatari-devel] Keyup bug in SDL GUI

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-devel Archives ]


On Dienstag, 29. November 2022 11:21:21 CET Andreas Grabher wrote:

> I have some more keyboard issues. Calling host routines can cause stuck

> keys, especially stuck modifiers. Not sure how this can be fixed.

 

That can easily happen with most of the keys that are handled by the window manager. Eg. when pressing alt-tab:

 

- you press alt. This is seen by Hatari.

- you press Tab. This is not seen by Hatari, and another window gets the focus.

- you release alt/tab. Only seen by the foreign application, if at all.

- you activate Hatari again by clicking on the window title. Hatari still thinks that Alt is pressed.

 

That is common to most emulators. Unless you do some kind of hard-grab, thus preventing those global keyboard shortcuts (imho a bad idea), there is not much you can do about that. Best workaround might be to refresh at least the state of the modifiers when the window gets focus.

 



Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/