From fd6a004f36677a03f7bb42908d2eda02621816d5 Mon Sep 17 00:00:00 2001 From: Ansariel Date: Thu, 7 Jun 2012 17:53:52 +0200 Subject: [PATCH] Undid deletions in lllineeditor.cpp and lltexteditor.cpp and commented out according sections --- indra/llui/lllineeditor.cpp | 15 ++++++++++++++- indra/llui/lltexteditor.cpp | 20 ++++++++++++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) diff --git a/indra/llui/lllineeditor.cpp b/indra/llui/lllineeditor.cpp index ec3a659073..afee6c6c6c 100644 --- a/indra/llui/lllineeditor.cpp +++ b/indra/llui/lllineeditor.cpp @@ -589,7 +589,8 @@ void LLLineEditor::selectAll() setCursor(mSelectionEnd); //mScrollHPos = 0; mIsSelecting = TRUE; - + // Linux primary "clipboard" tainted by auto-selection + //updatePrimary(); } // [SL:KB] - Patch: Misc-Spellcheck | Checked: 2010-12-19 (Catznip-2.7.0a) | Added: Catznip-2.5.0a @@ -750,6 +751,10 @@ BOOL LLLineEditor::handleDoubleClick(S32 x, S32 y, MASK mask) // delay cursor flashing mKeystrokeTimer.reset(); + // take selection to 'primary' clipboard + // Linux primary "clipboard" tainted by auto-selection + //updatePrimary(); + return TRUE; } @@ -1175,6 +1180,14 @@ BOOL LLLineEditor::handleSelectionKey(KEY key, MASK mask) break; } } + + // Linux primary "clipboard" tainted by auto-selection + //if(handled) + //{ + // // take selection to 'primary' clipboard + // updatePrimary(); + //} + // Linux primary "clipboard" tainted by auto-selection return handled; } diff --git a/indra/llui/lltexteditor.cpp b/indra/llui/lltexteditor.cpp index 8c17644d07..c99a5c7980 100644 --- a/indra/llui/lltexteditor.cpp +++ b/indra/llui/lltexteditor.cpp @@ -699,6 +699,8 @@ void LLTextEditor::selectAll() mSelectionStart = getLength(); mSelectionEnd = 0; setCursorPos(mSelectionEnd); + // Linux primary "clipboard" tainted by auto-selection + //updatePrimary(); } // [SL:KB] - Patch: Misc-Spellcheck | Checked: 2011-09-09 (Catznip-2.8.0a) | Added: Catznip-2.8.0a @@ -1025,6 +1027,9 @@ BOOL LLTextEditor::handleDoubleClick(S32 x, S32 y, MASK mask) // delay cursor flashing resetCursorBlink(); + // take selection to 'primary' clipboard + // Linux primary "clipboard" tainted by auto-selection + //updatePrimary(); handled = TRUE; } @@ -1342,6 +1347,14 @@ BOOL LLTextEditor::handleSelectionKey(const KEY key, const MASK mask) } } + // Linux primary "clipboard" tainted by auto-selection + //if( handled ) + //{ + // // take selection to 'primary' clipboard + // updatePrimary(); + //} + // Linux primary "clipboard" tainted by auto-selection + return handled; } @@ -1704,6 +1717,13 @@ BOOL LLTextEditor::handleControlKey(const KEY key, const MASK mask) } } + // Linux primary "clipboard" tainted by auto-selection + //if (handled) + //{ + // updatePrimary(); + //} + // Linux primary "clipboard" tainted by auto-selection + return handled; }