Commit 5769d6a7 authored by Luke Macken's avatar Luke Macken

Focus on the input widget when switching to the Shell tab

parent 6999dc6d
......@@ -241,7 +241,7 @@ class PyrasiteWindow(Gtk.Window):
def switch_page(self, notebook, page, pagenum):
name = self.notebook.get_tab_label(self.notebook.get_nth_page(pagenum))
if name.get_text() == 'Shell':
self.shell_prompt.grab_focus()
GObject.timeout_add(0, self.shell_prompt.grab_focus)
def run_shell_command(self, widget):
cmd = self.shell_prompt.get_text()
......
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