diff --git a/indra/llui/lltexteditor.cpp b/indra/llui/lltexteditor.cpp
index 7f309a5ff6bbae763a1eb62df0cc823acfcd375a..62140dd9d67909de341221f61efaa6f092dad743 100755
--- a/indra/llui/lltexteditor.cpp
+++ b/indra/llui/lltexteditor.cpp
@@ -729,7 +729,7 @@ BOOL LLTextEditor::handleMouseDown(S32 x, S32 y, MASK mask)
 	// Delay cursor flashing
 	resetCursorBlink();
 
-	if (handled)
+	if (handled && !gFocusMgr.getMouseCapture())
 	{
 		gFocusMgr.setMouseCapture( this );
 	}