From 2ebcbe0ef01ff567a6a092a2686d2432471b91db Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 26 Mar 2011 09:48:37 +1100 Subject: =?UTF-8?q?Make=20right=20mouse=20click=20outside=20selection=20ca?= =?UTF-8?q?ncel=20selection.=20Bug=20#3235190=20This=20is=20compatible=20w?= =?UTF-8?q?ith=20Windows.=20From=20J=C3=A9r=C3=B4me=20LAFORGE.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gtk/ScintillaGTK.cxx | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gtk') diff --git a/gtk/ScintillaGTK.cxx b/gtk/ScintillaGTK.cxx index 873bc4c65..55ce3f7d1 100644 --- a/gtk/ScintillaGTK.cxx +++ b/gtk/ScintillaGTK.cxx @@ -1685,6 +1685,8 @@ gint ScintillaGTK::PressThis(GdkEventButton *event) { gtk_selection_convert(GTK_WIDGET(PWidget(wMain)), GDK_SELECTION_PRIMARY, atomSought, event->time); } else if (event->button == 3) { + if (!PointInSelection(pt)) + SetEmptySelection(PositionFromLocation(pt)); if (displayPopupMenu) { // PopUp menu // Convert to screen -- cgit v1.2.3