summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKelly Washington <kelly@lindenlab.com>2010-09-24 16:31:43 -0700
committerKelly Washington <kelly@lindenlab.com>2010-09-24 16:31:43 -0700
commit92013d1212fdd2f082f1fdf07350e8e319b2fd75 (patch)
treed68f2e0a4fc863a96105fa2ce78f8ada3e084344
parentd129d6ee23995d0a5e89aa71e56d6ed6aa95761e (diff)
VWR-21377 Script editor ctrl-f fix.
change to better / more consistent naming
-rw-r--r--indra/llui/llfocusmgr.cpp4
-rw-r--r--indra/llui/llfocusmgr.h2
-rw-r--r--indra/llui/llview.h8
-rw-r--r--indra/newview/llpreviewscript.h2
-rw-r--r--indra/newview/llviewerwindow.cpp2
5 files changed, 9 insertions, 9 deletions
diff --git a/indra/llui/llfocusmgr.cpp b/indra/llui/llfocusmgr.cpp
index 7fbfd80d8d..43e5f6b051 100644
--- a/indra/llui/llfocusmgr.cpp
+++ b/indra/llui/llfocusmgr.cpp
@@ -315,12 +315,12 @@ void LLFocusMgr::removeKeyboardFocusWithoutCallback( const LLFocusableElement* f
}
}
-bool LLFocusMgr::keyboardFocusHasMenus() const
+bool LLFocusMgr::keyboardFocusHasAccelerators() const
{
LLView* focus_view = dynamic_cast<LLView*>(mKeyboardFocus);
while( focus_view )
{
- if(focus_view->hasMenus())
+ if(focus_view->hasAccelerators())
{
return true;
}
diff --git a/indra/llui/llfocusmgr.h b/indra/llui/llfocusmgr.h
index e09bad0187..22c1895075 100644
--- a/indra/llui/llfocusmgr.h
+++ b/indra/llui/llfocusmgr.h
@@ -118,7 +118,7 @@ public:
void unlockFocus();
BOOL focusLocked() const { return mLockedView != NULL; }
- bool keyboardFocusHasMenus() const;
+ bool keyboardFocusHasAccelerators() const;
private:
LLUICtrl* mLockedView;
diff --git a/indra/llui/llview.h b/indra/llui/llview.h
index 62683491ef..6d79415c26 100644
--- a/indra/llui/llview.h
+++ b/indra/llui/llview.h
@@ -277,10 +277,10 @@ public:
BOOL focusNextRoot();
BOOL focusPrevRoot();
- // Normally we want the app menus to get priority on modified keys
- // However, if this item claims to have menus then we want to give
- // it first chance at handling them. (eg. the script editor)
- virtual bool hasMenus() const { return false; };
+ // Normally we want the app menus to get priority on accelerated keys
+ // However, sometimes we want to give specific views a first chance
+ // iat handling them. (eg. the script editor)
+ virtual bool hasAccelerators() const { return false; };
// delete all children. Override this function if you need to
// perform any extra clean up such as cached pointers to selected
diff --git a/indra/newview/llpreviewscript.h b/indra/newview/llpreviewscript.h
index 3207da4e00..f4b31e5962 100644
--- a/indra/newview/llpreviewscript.h
+++ b/indra/newview/llpreviewscript.h
@@ -87,7 +87,7 @@ public:
static void onBtnInsertSample(void*);
static void onBtnInsertFunction(LLUICtrl*, void*);
- virtual bool hasMenus() const { return true; }
+ virtual bool hasAccelerators() const { return true; }
private:
void onBtnHelp();
diff --git a/indra/newview/llviewerwindow.cpp b/indra/newview/llviewerwindow.cpp
index 5a069547e4..14188e6d2e 100644
--- a/indra/newview/llviewerwindow.cpp
+++ b/indra/newview/llviewerwindow.cpp
@@ -2141,7 +2141,7 @@ BOOL LLViewerWindow::handleKey(KEY key, MASK mask)
if (mask & (MASK_CONTROL | MASK_ALT) && !gFocusMgr.focusLocked())
{
// Check the current floater's menu first, if it has one.
- if (gFocusMgr.keyboardFocusHasMenus()
+ if (gFocusMgr.keyboardFocusHasAccelerators()
&& keyboard_focus
&& keyboard_focus->handleKey(key,mask,FALSE))
{