Ignore Scroll Lock status when checking hotkey commands
Fixes #6759
(cherry-picked from 034bc786cc
)
This commit is contained in:
parent
6ff3703da0
commit
0e888f396f
1 changed files with 2 additions and 3 deletions
|
@ -51,9 +51,8 @@ static unsigned int sdl_get_mods()
|
|||
unsigned int mods;
|
||||
mods = SDL_GetModState();
|
||||
|
||||
mods &= ~KMOD_NUM;
|
||||
mods &= ~KMOD_CAPS;
|
||||
mods &= ~KMOD_MODE;
|
||||
// Filter for only the mods we use: shift, ctrl, alt, gui
|
||||
mods &= KMOD_SHIFT | KMOD_CTRL | KMOD_ALT | KMOD_GUI;
|
||||
|
||||
// save the matching for checking right vs left keys
|
||||
if (mods & KMOD_SHIFT)
|
||||
|
|
Loading…
Add table
Reference in a new issue