summaryrefslogtreecommitdiff
path: root/indra/llui/lltexteditor.cpp
diff options
context:
space:
mode:
authorCallum Prentice <callum@lindenlab.com>2014-07-21 13:26:48 -0700
committerCallum Prentice <callum@lindenlab.com>2014-07-21 13:26:48 -0700
commitc25105945a9d74e331cae4d827fc3be8d8915b7a (patch)
tree894c4f663fecc5659e2e1afbe7a815fd0b921f4f /indra/llui/lltexteditor.cpp
parentf5c7d69317af103b5f5f762d7e0adb82f12a71b3 (diff)
parent532433674c9553636af9ea8d433b9da6d6fae587 (diff)
Merge with head of viewer-release
Diffstat (limited to 'indra/llui/lltexteditor.cpp')
-rwxr-xr-xindra/llui/lltexteditor.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/indra/llui/lltexteditor.cpp b/indra/llui/lltexteditor.cpp
index 90e3606998..576e8f7600 100755
--- a/indra/llui/lltexteditor.cpp
+++ b/indra/llui/lltexteditor.cpp
@@ -260,7 +260,8 @@ LLTextEditor::LLTextEditor(const LLTextEditor::Params& p) :
mContextMenu(NULL),
mShowContextMenu(p.show_context_menu),
mEnableTooltipPaste(p.enable_tooltip_paste),
- mPassDelete(FALSE)
+ mPassDelete(FALSE),
+ mKeepSelectionOnReturn(false)
{
mSourceID.generate();
@@ -1653,7 +1654,7 @@ BOOL LLTextEditor::handleSpecialKey(const KEY key, const MASK mask)
case KEY_RETURN:
if (mask == MASK_NONE)
{
- if( hasSelection() )
+ if( hasSelection() && !mKeepSelectionOnReturn )
{
deleteSelection(FALSE);
}