diff options
author | Tofu Linden <tofu.linden@lindenlab.com> | 2010-09-27 17:49:03 +0100 |
---|---|---|
committer | Tofu Linden <tofu.linden@lindenlab.com> | 2010-09-27 17:49:03 +0100 |
commit | e6688f993f82d2683e3eadce96c893959c94be2d (patch) | |
tree | d3078961189c207b49ecfb76586da5110080d755 /indra/llui/llfocusmgr.cpp | |
parent | 595cbb77d250e3df2ba8caa66ad9c940430a8d3f (diff) | |
parent | fa22f0a6f8d1144bee20654209342280a772bcae (diff) |
merge
Diffstat (limited to 'indra/llui/llfocusmgr.cpp')
-rw-r--r-- | indra/llui/llfocusmgr.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/indra/llui/llfocusmgr.cpp b/indra/llui/llfocusmgr.cpp index 1f16d12add..43e5f6b051 100644 --- a/indra/llui/llfocusmgr.cpp +++ b/indra/llui/llfocusmgr.cpp @@ -315,6 +315,20 @@ void LLFocusMgr::removeKeyboardFocusWithoutCallback( const LLFocusableElement* f } } +bool LLFocusMgr::keyboardFocusHasAccelerators() const +{ + LLView* focus_view = dynamic_cast<LLView*>(mKeyboardFocus); + while( focus_view ) + { + if(focus_view->hasAccelerators()) + { + return true; + } + + focus_view = focus_view->getParent(); + } + return false; +} void LLFocusMgr::setMouseCapture( LLMouseHandler* new_captor ) { |