summaryrefslogtreecommitdiff
path: root/indra/llui/llchatentry.cpp
diff options
context:
space:
mode:
authorAura Linden <aura@lindenlab.com>2014-07-22 18:23:48 -0700
committerAura Linden <aura@lindenlab.com>2014-07-22 18:23:48 -0700
commitf61671aec7a15160f906650b4c7449be68c7b074 (patch)
tree1c8f08f04d137f41c5b8cbf9a579161ff0dd3538 /indra/llui/llchatentry.cpp
parent3d4acb535d75c4cc78c93dee318bcffaca691237 (diff)
parent532433674c9553636af9ea8d433b9da6d6fae587 (diff)
Merged in release.
Diffstat (limited to 'indra/llui/llchatentry.cpp')
-rwxr-xr-xindra/llui/llchatentry.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/indra/llui/llchatentry.cpp b/indra/llui/llchatentry.cpp
index c04b70eb64..dac001afab 100755
--- a/indra/llui/llchatentry.cpp
+++ b/indra/llui/llchatentry.cpp
@@ -51,6 +51,7 @@ LLChatEntry::LLChatEntry(const Params& p)
mCurrentHistoryLine = mLineHistory.begin();
mAutoIndent = false;
+ keepSelectionOnReturn(true);
}
LLChatEntry::~LLChatEntry()
@@ -179,15 +180,6 @@ BOOL LLChatEntry::handleSpecialKey(const KEY key, const MASK mask)
{
BOOL handled = FALSE;
- // In the case of a chat entry, pressing RETURN when something is selected
- // should NOT erase the selection (unlike a notecard, for example)
- if (key == KEY_RETURN)
- {
- endOfDoc();
- startSelection();
- endSelection();
- }
-
LLTextEditor::handleSpecialKey(key, mask);
switch(key)