From ad1ed1d2e34ef29a829991745dc4232a1867c09a Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Tue, 24 Apr 2012 08:49:56 +1000 Subject: Feature #3520037. Restore Ctrl+Triple Click adding a line to the selection. Collapse selection if multiple selection turned off. From Marko Njezic. --- src/Editor.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index fad58c296..467015a84 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -6233,7 +6233,7 @@ void Editor::ButtonDown(Point pt, unsigned int curTime, bool shift, bool ctrl, b if (((curTime - lastClickTime) < Platform::DoubleClickTime()) && Close(pt, lastClick)) { //Platform::DebugPrintf("Double click %d %d = %d\n", curTime, lastClickTime, curTime - lastClickTime); SetMouseCapture(true); - if ((!ctrl) || (selectionType != selChar)) + if (!ctrl || !multipleSelection || (selectionType != selChar && selectionType != selWord)) SetEmptySelection(newPos.Position()); bool doubleClick = false; // Stop mouse button bounce changing selection type -- cgit v1.2.3