fixed EXT-3425 “Undocked floaters focus issue”,
made focus be passed to game area in case floater can't hold focus; --HG-- branch : product-enginemeow-7.2.2
parent
cf18b668ce
commit
6c48bb9f2d
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue