diff options
author | McCabe Maxsted | 2011-04-12 16:32:05 -0700 |
---|---|---|
committer | McCabe Maxsted | 2011-04-12 16:44:25 -0700 |
commit | 79c7ccc27f15d5039c9ca0670ae7aef7edd2321d (patch) | |
tree | 4f0fff6da3e9809fed2501aff49151ccd754ebc6 /linden/indra/newview/lltoolmgr.cpp | |
parent | Made URLs clickable in the profile's Avatar and Real Life tabs (diff) | |
download | meta-impy-79c7ccc27f15d5039c9ca0670ae7aef7edd2321d.zip meta-impy-79c7ccc27f15d5039c9ca0670ae7aef7edd2321d.tar.gz meta-impy-79c7ccc27f15d5039c9ca0670ae7aef7edd2321d.tar.bz2 meta-impy-79c7ccc27f15d5039c9ca0670ae7aef7edd2321d.tar.xz |
Partial revert of a47ebd78. This caused issues with selection and alt-camming, and fixes for them seemed to only create more edge cases rather than solve them. If anyone finds a good way to differentiate when users can use keyboard vs. ui selection, go for it
Diffstat (limited to 'linden/indra/newview/lltoolmgr.cpp')
-rw-r--r-- | linden/indra/newview/lltoolmgr.cpp | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/linden/indra/newview/lltoolmgr.cpp b/linden/indra/newview/lltoolmgr.cpp index 764ca9d..675412d 100644 --- a/linden/indra/newview/lltoolmgr.cpp +++ b/linden/indra/newview/lltoolmgr.cpp | |||
@@ -193,22 +193,11 @@ LLTool* LLToolMgr::getCurrentTool() | |||
193 | else | 193 | else |
194 | { | 194 | { |
195 | // due to window management weirdness we can get here with gToolNull | 195 | // due to window management weirdness we can get here with gToolNull |
196 | // Don't use keyboard overrides when the edit window doesn't have focus. The chatbar is an unfortunate exception -- MC | 196 | bool can_override = mBaseTool && (mBaseTool != gToolNull) ; |
197 | if (gViewerWindow && gViewerWindow->getUIHasFocus() | 197 | mOverrideTool = can_override ? mBaseTool->getOverrideTool(override_mask) : NULL; |
198 | && gFloaterTools && !gFloaterTools->hasFocus() | ||
199 | && gChatBar && !gChatBar->getVisible()) | ||
200 | { | ||
201 | cur_tool = mBaseTool; | ||
202 | } | ||
203 | else | ||
204 | { | ||
205 | bool can_override = mBaseTool && (mBaseTool != gToolNull) ; | ||
206 | |||
207 | mOverrideTool = can_override ? mBaseTool->getOverrideTool(override_mask) : NULL; | ||
208 | 198 | ||
209 | // use keyboard-override tool if available otherwise drop back to base tool | 199 | // use keyboard-override tool if available otherwise drop back to base tool |
210 | cur_tool = mOverrideTool ? mOverrideTool : mBaseTool; | 200 | cur_tool = mOverrideTool ? mOverrideTool : mBaseTool; |
211 | } | ||
212 | } | 201 | } |
213 | 202 | ||
214 | LLTool* prev_tool = mSelectedTool; | 203 | LLTool* prev_tool = mSelectedTool; |