diff --git a/indra/llui/lllineeditor.cpp b/indra/llui/lllineeditor.cpp
index 407379aebac59c9493c873948e9ded139b51bc1a..2ffdd71cc9b005bd2205463dd80be7a648d1a5c2 100644
--- a/indra/llui/lllineeditor.cpp
+++ b/indra/llui/lllineeditor.cpp
@@ -1584,7 +1584,7 @@ BOOL LLLineEditor::handleKeyHere(KEY key, MASK mask )
 				KEY_SHIFT != key &&
 				KEY_CONTROL != key &&
 				KEY_ALT != key &&
-				KEY_CAPSLOCK )
+				KEY_CAPSLOCK != key)
 			{
 				deselect();
 			}