FIRE-11512 - Fix accelerator keys sometimes typing things into text entry fields on Linux

meow-7.2.2
Zi Ree 2021-12-15 20:45:49 +01:00
parent e5f5e08de3
commit 3ecdc24bfb
1 changed files with 3 additions and 1 deletions

View File

@ -1790,7 +1790,9 @@ void LLWindowSDL::gatherInput()
if (SDLCheckGrabbyKeys(event.key.keysym.sym, TRUE) != 0)
SDLReallyCaptureInput(TRUE);
if (event.key.keysym.unicode)
// <FS:Zi> FIRE-11512 - Fix accelerator keys sometimes typing things into text entry fields, like alt+h, ctrl+shift+1 ...
// if (event.key.keysym.unicode)
if ((gKeyboard->currentMask(false) & (MASK_ALT | MASK_CONTROL)) == 0 && event.key.keysym.unicode)
{
handleUnicodeUTF16(event.key.keysym.unicode,
gKeyboard->currentMask(FALSE));