Ignore Scroll Lock status when checking hotkey commands

Fixes #6759

(cherry-picked from 034bc786cc)
This commit is contained in:
Tommy 2022-07-05 12:47:15 +12:00
parent 6ff3703da0
commit 0e888f396f

View file

@ -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)