BlitterStudio / amiberry

Optimized Amiga emulator for Linux/macOS
https://amiberry.com
GNU General Public License v3.0
664 stars 90 forks source link

[bug] After using Alt-Tab to switch from Amiberry to Linux and back, the Alt button remains "pressed" #1038

Closed midwan closed 1 year ago

midwan commented 1 year ago

Describe the bug If we use Alt-Tab to switch control from Amiberry to another Linux app, when we return to Amiberry the Alt key remains in the Pressed state. We have to press it once more, before it is reset. This causes problems with any other keyboard input, since it's treated as Alt+ the key pressed.

To Reproduce Steps to reproduce the behavior:

  1. Enable Alt-Tab to switch in the Misc panel

  2. Boot something in Amiberry, on a desktop Linux environment

  3. Use Alt-Tab to switch to another Linux app, and switch back

  4. Try pressing any other key input in Amiberry, e.g. even F12 to open the GUI. The key does not respond as expected, until Alt is pressed once more

Expected behavior The Alt key state should be reset during this process

midwan commented 1 year ago

Fixed with a2193fe92ae1a015dd958781649fd08e3ee2be7c