Minor focus grabbing fix from the GTK3 port.
This commit is contained in:
parent
59c0499c77
commit
be6128f7be
|
@ -1017,7 +1017,7 @@ class Terminal(Gtk.VBox):
|
|||
|
||||
def grab_focus(self):
|
||||
"""Steal focus for this terminal"""
|
||||
# if not self.vte.flags()&Gtk.HAS_FOCUS: # VERIFY FOR GTK3: how to do this? or should we just simply omit this and grab unconditionally?
|
||||
if not self.vte.has_focus():
|
||||
self.vte.grab_focus()
|
||||
|
||||
def ensure_visible_and_focussed(self):
|
||||
|
|
Loading…
Reference in New Issue