aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui/llfocusmgr.cpp
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:04 -0500
committerJacek Antonelli2008-08-15 23:45:04 -0500
commit117e22047c5752352342d64e3fb7ce00a4eb8113 (patch)
treee32de2cfba0dda8705ae528fcd1fbe23ba075685 /linden/indra/llui/llfocusmgr.cpp
parentSecond Life viewer sources 1.18.0.6 (diff)
downloadmeta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.zip
meta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.tar.gz
meta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.tar.bz2
meta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.tar.xz
Second Life viewer sources 1.18.1.2
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;