diff options
Diffstat (limited to 'linden/indra/llui/llfocusmgr.h')
-rw-r--r-- | linden/indra/llui/llfocusmgr.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/linden/indra/llui/llfocusmgr.h b/linden/indra/llui/llfocusmgr.h index 842c874..49aba93 100644 --- a/linden/indra/llui/llfocusmgr.h +++ b/linden/indra/llui/llfocusmgr.h | |||
@@ -54,13 +54,17 @@ public: | |||
54 | BOOL childHasMouseCapture( const LLView* parent ) const; | 54 | BOOL childHasMouseCapture( const LLView* parent ) const; |
55 | 55 | ||
56 | // Keyboard Focus | 56 | // Keyboard Focus |
57 | void setKeyboardFocus(LLUICtrl* new_focus, BOOL lock = FALSE); // new_focus = NULL to release the focus. | 57 | void setKeyboardFocus(LLUICtrl* new_focus, BOOL lock = FALSE, BOOL keystrokes_only = FALSE); // new_focus = NULL to release the focus. |
58 | LLUICtrl* getKeyboardFocus() const { return mKeyboardFocus; } | 58 | LLUICtrl* getKeyboardFocus() const { return mKeyboardFocus; } |
59 | LLUICtrl* getLastKeyboardFocus() const { return mLastKeyboardFocus; } | 59 | LLUICtrl* getLastKeyboardFocus() const { return mLastKeyboardFocus; } |
60 | BOOL childHasKeyboardFocus( const LLView* parent ) const; | 60 | BOOL childHasKeyboardFocus( const LLView* parent ) const; |
61 | void removeKeyboardFocusWithoutCallback( const LLView* focus ); | 61 | void removeKeyboardFocusWithoutCallback( const LLView* focus ); |
62 | BOOL getKeystrokesOnly() { return mKeystrokesOnly; } | ||
63 | void setKeystrokesOnly(BOOL keystrokes_only) { mKeystrokesOnly = keystrokes_only; } | ||
64 | |||
62 | F32 getFocusTime() const { return mFocusTimer.getElapsedTimeF32(); } | 65 | F32 getFocusTime() const { return mFocusTimer.getElapsedTimeF32(); } |
63 | F32 getFocusFlashAmt() const; | 66 | F32 getFocusFlashAmt() const; |
67 | S32 getFocusFlashWidth() const { return llround(lerp(1.f, 3.f, getFocusFlashAmt())); } | ||
64 | LLColor4 getFocusColor() const; | 68 | LLColor4 getFocusColor() const; |
65 | void triggerFocusFlash(); | 69 | void triggerFocusFlash(); |
66 | BOOL getAppHasFocus() const { return mAppHasFocus; } | 70 | BOOL getAppHasFocus() const { return mAppHasFocus; } |
@@ -96,6 +100,7 @@ private: | |||
96 | LLUICtrl* mKeyboardFocus; // Keyboard events are preemptively routed to this object | 100 | LLUICtrl* mKeyboardFocus; // Keyboard events are preemptively routed to this object |
97 | LLUICtrl* mLastKeyboardFocus; // who last had focus | 101 | LLUICtrl* mLastKeyboardFocus; // who last had focus |
98 | LLUICtrl* mDefaultKeyboardFocus; | 102 | LLUICtrl* mDefaultKeyboardFocus; |
103 | BOOL mKeystrokesOnly; | ||
99 | 104 | ||
100 | // Top View | 105 | // Top View |
101 | LLUICtrl* mTopCtrl; | 106 | LLUICtrl* mTopCtrl; |