From 1384ea524563493a23ba97fa8d230d50462a4b16 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 23 Apr 2012 19:24:33 +1000 Subject: Feature #3520037. Modify Ctrl+Double Click change so that does not trigger except for transition from character selection to word selection. --- 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 29266563a..fad58c296 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) + if ((!ctrl) || (selectionType != selChar)) SetEmptySelection(newPos.Position()); bool doubleClick = false; // Stop mouse button bounce changing selection type -- cgit v1.2.3