diff options
author | Seth ProductEngine <slitovchuk@productengine.com> | 2010-10-13 00:54:57 +0300 |
---|---|---|
committer | Seth ProductEngine <slitovchuk@productengine.com> | 2010-10-13 00:54:57 +0300 |
commit | 401fdbcfac1d7e8b6b91c958a23ec6705dfe4e07 (patch) | |
tree | 93c5127edda691f6938527f4c7f8dad7de350b35 /indra/llui/llmenugl.h | |
parent | c683151587067cb2758206432610d4ff4884036e (diff) |
STORM-294 FIXED keyboard navigation in Favorites bar overflow menu.
The menu items can now be scrolled cyclically with a keyboard even if not all items are visible at once.
Diffstat (limited to 'indra/llui/llmenugl.h')
-rw-r--r-- | indra/llui/llmenugl.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/indra/llui/llmenugl.h b/indra/llui/llmenugl.h index 19b738312e..35544402f4 100644 --- a/indra/llui/llmenugl.h +++ b/indra/llui/llmenugl.h @@ -397,6 +397,15 @@ public: static const std::string ARROW_UP; static const std::string ARROW_DOWN; + // for scrollable menus + typedef enum e_scrolling_direction + { + SD_UP = 0, + SD_DOWN = 1, + SD_BEGIN = 2, + SD_END = 3 + } EScrollingDirection; + protected: LLMenuGL(const LLMenuGL::Params& p); friend class LLUICtrlFactory; @@ -503,8 +512,7 @@ public: S32 getShortcutPad() { return mShortcutPad; } - void scrollItemsUp(); - void scrollItemsDown(); + bool scrollItems(EScrollingDirection direction); BOOL isScrollable() const { return mScrollable; } static class LLMenuHolderGL* sMenuContainer; |