aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <unknown>2011-03-26 09:48:37 +1100
committernyamatongwe <unknown>2011-03-26 09:48:37 +1100
commit2ebcbe0ef01ff567a6a092a2686d2432471b91db (patch)
treefd4aa7d463aa230ab1800f6970f46f21319bdb49
parent742184d5506f5bc77d8b3ad38a3c135bbeafe42b (diff)
downloadscintilla-mirror-2ebcbe0ef01ff567a6a092a2686d2432471b91db.tar.gz
Make right mouse click outside selection cancel selection. Bug #3235190
This is compatible with Windows. From Jérôme LAFORGE.
-rw-r--r--gtk/ScintillaGTK.cxx2
1 files changed, 2 insertions, 0 deletions
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