aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui/llfocusmgr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llui/llfocusmgr.cpp')
-rw-r--r--linden/indra/llui/llfocusmgr.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/linden/indra/llui/llfocusmgr.cpp b/linden/indra/llui/llfocusmgr.cpp
index f79164e..f9f3350 100644
--- a/linden/indra/llui/llfocusmgr.cpp
+++ b/linden/indra/llui/llfocusmgr.cpp
@@ -152,8 +152,7 @@ void LLFocusMgr::setKeyboardFocus(LLUICtrl* new_focus, FocusLostCallback on_focu
152 152
153 if (lock) 153 if (lock)
154 { 154 {
155 mLockedView = mKeyboardFocus; 155 lockFocus();
156 mKeyboardLockedFocusLostCallback = on_focus_lost;
157 } 156 }
158} 157}
159 158
@@ -312,6 +311,12 @@ void LLFocusMgr::removeTopCtrlWithoutCallback( LLUICtrl* top_view )
312 } 311 }
313} 312}
314 313
314void LLFocusMgr::lockFocus()
315{
316 mLockedView = mKeyboardFocus;
317 mKeyboardLockedFocusLostCallback = mKeyboardFocusLostCallback;
318}
319
315void LLFocusMgr::unlockFocus() 320void LLFocusMgr::unlockFocus()
316{ 321{
317 mLockedView = NULL; 322 mLockedView = NULL;