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; }