From 9a5c7d05e0182bb2f940f8084f0d2cf14d4551e4 Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Mon, 23 Apr 2012 13:27:56 +1000 Subject: Allow Ctrl+Double Click to add words to the selection. --- src/Editor.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/Editor.cxx b/src/Editor.cxx index f5903d87f..a6f638651 100644 --- a/src/Editor.cxx +++ b/src/Editor.cxx @@ -6233,7 +6233,8 @@ 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); - SetEmptySelection(newPos.Position()); + if (!ctrl) + SetEmptySelection(newPos.Position()); bool doubleClick = false; // Stop mouse button bounce changing selection type if (!Platform::MouseButtonBounce() || curTime != lastClickTime) { -- cgit v1.2.3