aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2011-03-26 09:48:37 +1100
committernyamatongwe <devnull@localhost>2011-03-26 09:48:37 +1100
commited0582422f34f7b4e5c025bc7611fb166be3b935 (patch)
treed436b888b88fedc580c05e4fe84967c487acf26e
parent9942f62f7149439001e1b787d8d9ad194c75ca02 (diff)
downloadscintilla-mirror-ed0582422f34f7b4e5c025bc7611fb166be3b935.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