From 351621d87347c3c436ea633045fc3f712fbeee5b Mon Sep 17 00:00:00 2001 From: andreykproductengine Date: Wed, 16 Jul 2014 17:08:11 +0300 Subject: MAINT-2205 FIXED Pressing delete in script window deletes selected object Focus was not properly released --- indra/newview/lltoolpie.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'indra/newview/lltoolpie.cpp') diff --git a/indra/newview/lltoolpie.cpp b/indra/newview/lltoolpie.cpp index 8191958dd4..eec9760d2d 100755 --- a/indra/newview/lltoolpie.cpp +++ b/indra/newview/lltoolpie.cpp @@ -1700,6 +1700,12 @@ BOOL LLToolPie::handleRightClickPick() } } + // non UI object - put focus back "in world" + if (gFocusMgr.getKeyboardFocus()) + { + gFocusMgr.setKeyboardFocus(NULL); + } + LLTool::handleRightMouseDown(x, y, mask); // We handled the event. return TRUE; -- cgit v1.2.3