mirror of
https://github.com/LIV2/amiberry.git
synced 2025-12-06 06:32:45 +00:00
refactor: set alwaysrelease to true when releasing Alt-Tab
This commit is contained in:
parent
731b3b27a2
commit
e3e0b82ec9
@ -361,8 +361,8 @@ int keyhack (const int scancode, const int pressed, const int num)
|
||||
{
|
||||
if (pressed && state[SDL_SCANCODE_LALT] && scancode == SDL_SCANCODE_TAB) {
|
||||
// Ensure we release Alt-Tab before we release capture
|
||||
inputdevice_translatekeycode(num, SDL_SCANCODE_TAB, 0, false);
|
||||
inputdevice_translatekeycode(num, SDL_SCANCODE_LALT, 0, false);
|
||||
inputdevice_translatekeycode(num, SDL_SCANCODE_TAB, 0, true);
|
||||
inputdevice_translatekeycode(num, SDL_SCANCODE_LALT, 0, true);
|
||||
|
||||
disablecapture();
|
||||
return -1;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user