diff options
Diffstat (limited to 'linden')
-rw-r--r-- | linden/indra/newview/llviewerwindow.cpp | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/linden/indra/newview/llviewerwindow.cpp b/linden/indra/newview/llviewerwindow.cpp index 36f1a70..340d7a3 100644 --- a/linden/indra/newview/llviewerwindow.cpp +++ b/linden/indra/newview/llviewerwindow.cpp | |||
@@ -2094,7 +2094,7 @@ void LLViewerWindow::draw() | |||
2094 | // Draw tooltips | 2094 | // Draw tooltips |
2095 | // Adjust their rectangle so they don't go off the top or bottom | 2095 | // Adjust their rectangle so they don't go off the top or bottom |
2096 | // of the screen. | 2096 | // of the screen. |
2097 | if( mToolTip && mToolTip->getVisible() ) | 2097 | if( mToolTip && mToolTip->getVisible() && !mToolTipBlocked ) |
2098 | { | 2098 | { |
2099 | glMatrixMode(GL_MODELVIEW); | 2099 | glMatrixMode(GL_MODELVIEW); |
2100 | LLUI::pushMatrix(); | 2100 | LLUI::pushMatrix(); |
@@ -2141,6 +2141,16 @@ void LLViewerWindow::draw() | |||
2141 | // Takes a single keydown event, usually when UI is visible | 2141 | // Takes a single keydown event, usually when UI is visible |
2142 | BOOL LLViewerWindow::handleKey(KEY key, MASK mask) | 2142 | BOOL LLViewerWindow::handleKey(KEY key, MASK mask) |
2143 | { | 2143 | { |
2144 | // Hide tooltips on keypress | ||
2145 | mToolTipBlocked = TRUE; // block until next time mouse is moved | ||
2146 | |||
2147 | // Also hide hover info on keypress | ||
2148 | if (gHoverView) | ||
2149 | { | ||
2150 | gHoverView->cancelHover(); | ||
2151 | gHoverView->setTyping(TRUE); | ||
2152 | } | ||
2153 | |||
2144 | if (gFocusMgr.getKeyboardFocus() | 2154 | if (gFocusMgr.getKeyboardFocus() |
2145 | && !(mask & (MASK_CONTROL | MASK_ALT)) | 2155 | && !(mask & (MASK_CONTROL | MASK_ALT)) |
2146 | && !gFocusMgr.getKeystrokesOnly()) | 2156 | && !gFocusMgr.getKeystrokesOnly()) |
@@ -2163,17 +2173,6 @@ BOOL LLViewerWindow::handleKey(KEY key, MASK mask) | |||
2163 | } | 2173 | } |
2164 | } | 2174 | } |
2165 | 2175 | ||
2166 | // Hide tooltips on keypress | ||
2167 | mToolTipBlocked = TRUE; // block until next time mouse is moved | ||
2168 | |||
2169 | // Also hide hover info on keypress | ||
2170 | if (gHoverView) | ||
2171 | { | ||
2172 | gHoverView->cancelHover(); | ||
2173 | |||
2174 | gHoverView->setTyping(TRUE); | ||
2175 | } | ||
2176 | |||
2177 | // Explicit hack for debug menu. | 2176 | // Explicit hack for debug menu. |
2178 | if ((mask == (MASK_SHIFT | MASK_CONTROL)) && | 2177 | if ((mask == (MASK_SHIFT | MASK_CONTROL)) && |
2179 | ('G' == key || 'g' == key)) | 2178 | ('G' == key || 'g' == key)) |