diff options
author | nyamatongwe <devnull@localhost> | 2011-03-26 09:48:37 +1100 |
---|---|---|
committer | nyamatongwe <devnull@localhost> | 2011-03-26 09:48:37 +1100 |
commit | ed0582422f34f7b4e5c025bc7611fb166be3b935 (patch) | |
tree | d436b888b88fedc580c05e4fe84967c487acf26e | |
parent | 9942f62f7149439001e1b787d8d9ad194c75ca02 (diff) | |
download | scintilla-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.cxx | 2 |
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 |