parent
02bc055976
commit
7aba44cd19
|
@ -318,6 +318,8 @@ class Terminal(gtk.VBox):
|
||||||
def connect_signals(self):
|
def connect_signals(self):
|
||||||
"""Connect all the gtk signals and drag-n-drop mechanics"""
|
"""Connect all the gtk signals and drag-n-drop mechanics"""
|
||||||
|
|
||||||
|
self.scrollbar.connect('button-press-event', self.on_buttonpress)
|
||||||
|
|
||||||
self.vte.connect('key-press-event', self.on_keypress)
|
self.vte.connect('key-press-event', self.on_keypress)
|
||||||
self.vte.connect('button-press-event', self.on_buttonpress)
|
self.vte.connect('button-press-event', self.on_buttonpress)
|
||||||
self.vte.connect('scroll-event', self.on_mousewheel)
|
self.vte.connect('scroll-event', self.on_mousewheel)
|
||||||
|
@ -862,6 +864,10 @@ class Terminal(gtk.VBox):
|
||||||
# Any button event should grab focus
|
# Any button event should grab focus
|
||||||
widget.grab_focus()
|
widget.grab_focus()
|
||||||
|
|
||||||
|
if type(widget) == gtk.VScrollbar:
|
||||||
|
# Suppress double-click behavior
|
||||||
|
return True
|
||||||
|
|
||||||
if event.button == 1:
|
if event.button == 1:
|
||||||
# Ctrl+leftclick on a URL should open it
|
# Ctrl+leftclick on a URL should open it
|
||||||
if event.state & gtk.gdk.CONTROL_MASK == gtk.gdk.CONTROL_MASK:
|
if event.state & gtk.gdk.CONTROL_MASK == gtk.gdk.CONTROL_MASK:
|
||||||
|
|
Loading…
Reference in New Issue