Skip to content

Commit

Permalink
Removed duplicate releasing of alt-tab keys
Browse files Browse the repository at this point in the history
This shouldn't be needed anymore
  • Loading branch information
midwan committed Oct 11, 2024
1 parent ca8062c commit e1a76fb
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/osdep/amiberry_input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -360,10 +360,6 @@ int keyhack (const int scancode, const int pressed, const int num)
if (currprefs.alt_tab_release)
{
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, true);
inputdevice_translatekeycode(num, SDL_SCANCODE_LALT, 0, true);

disablecapture();
return -1;
}
Expand Down

0 comments on commit e1a76fb

Please sign in to comment.