summaryrefslogtreecommitdiff
path: root/indra/newview/llpanelpulldown.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2022-08-11 23:03:14 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2022-08-12 00:39:42 +0300
commit1de8306c830611d22e9d684ad1372e6f506f21af (patch)
tree17c35e66847f8a0c77f23da9d7ede51df0252776 /indra/newview/llpanelpulldown.cpp
parentfd8b052b3212ab3b16fca716c8d190822e4d6ac8 (diff)
SL-17965 Closing some floaters shifts focus to menu bar
Focus root now only covers menu, status and nav bar to not steal focus from floaters This partially reverts commit 1d6bfb727a8015e82cd4060a0c73cf3fc719e818.
Diffstat (limited to 'indra/newview/llpanelpulldown.cpp')
-rw-r--r--indra/newview/llpanelpulldown.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/llpanelpulldown.cpp b/indra/newview/llpanelpulldown.cpp
index 4de6ee8182..075278f44c 100644
--- a/indra/newview/llpanelpulldown.cpp
+++ b/indra/newview/llpanelpulldown.cpp
@@ -51,6 +51,7 @@ void LLPanelPulldown::onMouseEnter(S32 x, S32 y, MASK mask)
/*virtual*/
void LLPanelPulldown::onTopLost()
{
+ setFocus(FALSE); // drop focus to prevent transfer to parent
setVisible(FALSE);
}
@@ -113,6 +114,7 @@ void LLPanelPulldown::draw()
if (alpha == 0.f)
{
+ setFocus(FALSE); // drop focus to prevent transfer to parent
setVisible(FALSE);
}
}