[vte/vte-0-34] emulation: End selection mode misses Shift release



commit 49cacf86a2930cadf1fef5913b40c697797cbdea
Author: Egmont Koblinger <egmont gmail com>
Date:   Fri Oct 12 22:00:03 2012 +0200

    emulation: End selection mode misses Shift release
    
    When shift was released before the mouse button, we were not ending the selection.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=683730

 src/vte.c |   11 ++---------
 1 files changed, 2 insertions(+), 9 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index b46c2f0..bbe6cf6 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -7541,17 +7541,10 @@ vte_terminal_button_release(GtkWidget *widget, GdkEventButton *event)
 				event->button, x, y);
 		switch (event->button) {
 		case 1:
-			/* If Shift is held down, or we're not in events mode,
-			 * copy the selected text. */
-			if ((terminal->pvt->modifiers & GDK_SHIFT_MASK) ||
-			    !terminal->pvt->mouse_tracking_mode)
-				handled = _vte_terminal_maybe_end_selection (terminal);
+			handled = _vte_terminal_maybe_end_selection (terminal);
 			break;
 		case 2:
-			if ((terminal->pvt->modifiers & GDK_SHIFT_MASK) ||
-			    !terminal->pvt->mouse_tracking_mode) {
-				handled = TRUE;
-			}
+			handled = TRUE;
 			break;
 		case 3:
 		default:



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]