fixed EXT-3425 “Undocked floaters focus issue”,

made focus be passed to game area in case floater can't hold focus;

--HG--
branch : product-engine
meow-7.2.2
Alexei Arabadji 2009-12-23 16:51:21 +02:00
parent cf18b668ce
commit 6c48bb9f2d
1 changed files with 5 additions and 0 deletions

View File

@ -2148,6 +2148,11 @@ void LLFloaterView::bringToFront(LLFloater* child, BOOL give_focus)
if (give_focus && !gFocusMgr.childHasKeyboardFocus(child))
{
child->setFocus(TRUE);
// floater did not take focus, so relinquish focus to world
if (!child->hasFocus())
{
gFocusMgr.setKeyboardFocus(NULL);
}
}
}