Skip to content

Commit

Permalink
refactor: set alwaysrelease to true when releasing Alt-Tab
Browse files Browse the repository at this point in the history
  • Loading branch information
midwan committed Oct 10, 2024
1 parent 731b3b2 commit e3e0b82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/osdep/amiberry_input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e3e0b82

Please sign in to comment.