diff options
author | Aura Linden <aura@lindenlab.com> | 2014-07-22 18:23:48 -0700 |
---|---|---|
committer | Aura Linden <aura@lindenlab.com> | 2014-07-22 18:23:48 -0700 |
commit | f61671aec7a15160f906650b4c7449be68c7b074 (patch) | |
tree | 1c8f08f04d137f41c5b8cbf9a579161ff0dd3538 /indra/llui/lltexteditor.cpp | |
parent | 3d4acb535d75c4cc78c93dee318bcffaca691237 (diff) | |
parent | 532433674c9553636af9ea8d433b9da6d6fae587 (diff) |
Merged in 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); } |