FIRE-31551: Fix aggressive switching into mouselook when pressing M

meow-7.2.2
Ansariel 2022-08-05 23:38:57 +02:00
parent aa9728c98d
commit 637ddfa009
1 changed files with 3 additions and 2 deletions

View File

@ -3296,8 +3296,9 @@ BOOL LLViewerWindow::handleKey(KEY key, MASK mask)
if (keyboard_focus
&& !gFocusMgr.getKeystrokesOnly())
{
LLUICtrl* cur_focus = dynamic_cast<LLUICtrl*>(keyboard_focus);
if (cur_focus && cur_focus->acceptsTextInput())
// <FS:Ansariel> FIRE-31551: This causes aggressive switching into mouselook while any floater has focus
//LLUICtrl* cur_focus = dynamic_cast<LLUICtrl*>(keyboard_focus);
//if (cur_focus && cur_focus->acceptsTextInput())
{
#ifdef LL_WINDOWS
// On windows Alt Gr key generates additional Ctrl event, as result handling situations