summaryrefslogtreecommitdiff
path: root/indra/newview
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2022-03-14 16:30:16 +0200
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2022-03-14 17:16:09 +0200
commitbd3ef8a0ed609e07cf85e98b0410680243dab76f (patch)
tree2b9f15eb46f4e9b4ee92568d0fc19e1e55ca4ed2 /indra/newview
parent10e9e3ca1be2f424c4efd87d3193a0755525d430 (diff)
SL-16845 PTT Mic doesn't close when leaving window and releasing key
Diffstat (limited to 'indra/newview')
-rw-r--r--indra/newview/llviewerwindow.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/indra/newview/llviewerwindow.cpp b/indra/newview/llviewerwindow.cpp
index 1381272cad..3c9a10bb2e 100644
--- a/indra/newview/llviewerwindow.cpp
+++ b/indra/newview/llviewerwindow.cpp
@@ -1573,9 +1573,11 @@ void LLViewerWindow::handleFocusLost(LLWindow *window)
showCursor();
getWindow()->setMouseClipping(FALSE);
- // If losing focus while keys are down, reset them.
+ // If losing focus while keys are down, handle them as
+ // an 'up' to correctly release states, then reset states
if (gKeyboard)
{
+ gKeyboard->resetKeyDownAndHandle();
gKeyboard->resetKeys();
}