diff options
| author | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2021-09-21 21:55:12 +0300 | 
|---|---|---|
| committer | Andrey Kleshchev <andreykproductengine@lindenlab.com> | 2021-09-21 21:59:02 +0300 | 
| commit | 1d6bfb727a8015e82cd4060a0c73cf3fc719e818 (patch) | |
| tree | ef04cf36bebf7d56756749fdc6496ec302e95e95 /indra/llui | |
| parent | 7c00db9e0e2b3ba2ecae376fdf722977565e4283 (diff) | |
SL-16022 Fixed Tab not cycling through all options
Diffstat (limited to 'indra/llui')
| -rw-r--r-- | indra/llui/llmenugl.cpp | 18 | 
1 files changed, 18 insertions, 0 deletions
| diff --git a/indra/llui/llmenugl.cpp b/indra/llui/llmenugl.cpp index cdaf03ebde..6b9bf425d2 100644 --- a/indra/llui/llmenugl.cpp +++ b/indra/llui/llmenugl.cpp @@ -1363,6 +1363,9 @@ public:  	virtual BOOL handleKeyHere(KEY key, MASK mask);  	virtual BOOL handleAcceleratorKey(KEY key, MASK mask); +     +    virtual void onFocusLost(); +    virtual void setFocus(BOOL b);  };  LLMenuItemBranchDownGL::LLMenuItemBranchDownGL( const Params& p) : @@ -1517,6 +1520,21 @@ BOOL LLMenuItemBranchDownGL::handleAcceleratorKey(KEY key, MASK mask)  	return handled;  } +void LLMenuItemBranchDownGL::onFocusLost() +{ +    // needed for tab-based selection +    LLMenuItemBranchGL::onFocusLost(); +    LLMenuGL::setKeyboardMode(FALSE); +    setHighlight(FALSE); +} + +void LLMenuItemBranchDownGL::setFocus(BOOL b) +{ +    // needed for tab-based selection +    LLMenuItemBranchGL::setFocus(b); +    LLMenuGL::setKeyboardMode(b); +    setHighlight(b); +}  BOOL LLMenuItemBranchDownGL::handleKeyHere(KEY key, MASK mask)  { | 
