diff options
author | Graham Linden <none@none> | 2014-07-31 08:40:57 -0700 |
---|---|---|
committer | Graham Linden <none@none> | 2014-07-31 08:40:57 -0700 |
commit | db43a0560c259623a1a8022668f8482d82cae9c8 (patch) | |
tree | 31e532720212ed1697897d6c2694fe991cb8f812 /indra/llui/lltexteditor.cpp | |
parent | 76e7f978c157f9921593ea0e43f642cb9de4703d (diff) | |
parent | 532433674c9553636af9ea8d433b9da6d6fae587 (diff) |
Merge viewer-release
Diffstat (limited to 'indra/llui/lltexteditor.cpp')
-rwxr-xr-x | indra/llui/lltexteditor.cpp | 5 |
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); } |