Commit 49cacf86 authored by Egmont Koblinger's avatar Egmont Koblinger Committed by Christian Persch
Browse files

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
parent 34199b92
......@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment