Focus terminal by default
This commit is contained in:
parent
32f214c220
commit
44e8d346a4
@ -66,6 +66,9 @@ class Terminal(gtk.HBox):
|
|||||||
def on_vte_popup_menu(self, term):
|
def on_vte_popup_menu(self, term):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
def grab_focus(self):
|
||||||
|
self._vte.grab_focus()
|
||||||
|
|
||||||
class TerminalActivity(Activity):
|
class TerminalActivity(Activity):
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
Activity.__init__(self)
|
Activity.__init__(self)
|
||||||
@ -75,3 +78,5 @@ class TerminalActivity(Activity):
|
|||||||
terminal = Terminal()
|
terminal = Terminal()
|
||||||
self.add(terminal)
|
self.add(terminal)
|
||||||
terminal.show()
|
terminal.show()
|
||||||
|
|
||||||
|
terminal.grab_focus()
|
||||||
|
Loading…
Reference in New Issue
Block a user