Skip to content

Commit

Permalink
#776: Removed Alt-Tab to release mouse, as it would block that key co…
Browse files Browse the repository at this point in the history
…mbination from being used in AmigaOS
  • Loading branch information
midwan committed Mar 3, 2021
1 parent 4de728b commit fd2192c
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/osdep/amiberry_input.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,12 +180,13 @@ int keyhack (int scancode, int pressed, int num)
{
static unsigned char backslashstate, apostrophstate;
const Uint8* state = SDL_GetKeyboardState(NULL);


// Disabled: https://github.com/midwan/amiberry/issues/776
// release mouse if TAB and ALT is pressed
if (pressed && state[SDL_SCANCODE_LALT] && scancode == SDL_SCANCODE_TAB) {
disablecapture();
return -1;
}
//if (pressed && state[SDL_SCANCODE_LALT] && scancode == SDL_SCANCODE_TAB) {
// disablecapture();
// return -1;
//}

if (!keyboard_german)
return scancode;
Expand Down

0 comments on commit fd2192c

Please # to comment.