diff options
| author | nyamatongwe <unknown> | 2011-03-26 09:48:37 +1100 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2011-03-26 09:48:37 +1100 | 
| commit | 2ebcbe0ef01ff567a6a092a2686d2432471b91db (patch) | |
| tree | fd4aa7d463aa230ab1800f6970f46f21319bdb49 | |
| parent | 742184d5506f5bc77d8b3ad38a3c135bbeafe42b (diff) | |
| download | scintilla-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.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  | 
