summaryrefslogtreecommitdiff
path: root/indra/llui/llchatentry.cpp
diff options
context:
space:
mode:
authorBrad Payne (Vir Linden) <vir@lindenlab.com>2014-07-09 14:32:46 -0400
committerBrad Payne (Vir Linden) <vir@lindenlab.com>2014-07-09 14:32:46 -0400
commitff3827f278d2d53f565bc585edc4db5bc5e5dc38 (patch)
tree87ba73e79aeb4af20816755f4226acdb942280c6 /indra/llui/llchatentry.cpp
parentbfb9fc85b9c8b59d5cddced665d8be2e6907b455 (diff)
parent3e6698073cedc8b24068147cf6b7091f081ea125 (diff)
merge
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)