diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llui/llfocusmgr.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/linden/indra/llui/llfocusmgr.cpp b/linden/indra/llui/llfocusmgr.cpp index 0634513..e2d1f46 100644 --- a/linden/indra/llui/llfocusmgr.cpp +++ b/linden/indra/llui/llfocusmgr.cpp | |||
@@ -46,6 +46,7 @@ LLFocusMgr::LLFocusMgr() | |||
46 | mKeyboardFocus( NULL ), | 46 | mKeyboardFocus( NULL ), |
47 | mLastKeyboardFocus( NULL ), | 47 | mLastKeyboardFocus( NULL ), |
48 | mDefaultKeyboardFocus( NULL ), | 48 | mDefaultKeyboardFocus( NULL ), |
49 | mKeystrokesOnly(FALSE), | ||
49 | mTopCtrl( NULL ), | 50 | mTopCtrl( NULL ), |
50 | mFocusWeight(0.f), | 51 | mFocusWeight(0.f), |
51 | mAppHasFocus(TRUE) // Macs don't seem to notify us that we've gotten focus, so default to true | 52 | mAppHasFocus(TRUE) // Macs don't seem to notify us that we've gotten focus, so default to true |
@@ -85,7 +86,7 @@ void LLFocusMgr::releaseFocusIfNeeded( const LLView* view ) | |||
85 | } | 86 | } |
86 | 87 | ||
87 | 88 | ||
88 | void LLFocusMgr::setKeyboardFocus(LLUICtrl* new_focus, BOOL lock) | 89 | void LLFocusMgr::setKeyboardFocus(LLUICtrl* new_focus, BOOL lock, BOOL keystrokes_only) |
89 | { | 90 | { |
90 | if (mLockedView && | 91 | if (mLockedView && |
91 | (new_focus == NULL || | 92 | (new_focus == NULL || |
@@ -98,6 +99,8 @@ void LLFocusMgr::setKeyboardFocus(LLUICtrl* new_focus, BOOL lock) | |||
98 | 99 | ||
99 | //llinfos << "Keyboard focus handled by " << (new_focus ? new_focus->getName() : "nothing") << llendl; | 100 | //llinfos << "Keyboard focus handled by " << (new_focus ? new_focus->getName() : "nothing") << llendl; |
100 | 101 | ||
102 | mKeystrokesOnly = keystrokes_only; | ||
103 | |||
101 | if( new_focus != mKeyboardFocus ) | 104 | if( new_focus != mKeyboardFocus ) |
102 | { | 105 | { |
103 | mLastKeyboardFocus = mKeyboardFocus; | 106 | mLastKeyboardFocus = mKeyboardFocus; |