Commits

nakamura committed 0c97531

move focus to the terminal

  • Participants
  • Parent commits 25a0bcf

Comments (0)

Files changed (1)

         self.pack_end(self.terminal, True, True, 0)
 
         self._eb.connect('button-release-event', self.do_eb_button_release)
+        self._sync_check.connect('button-release-event',
+                                 lambda *_: self.terminal.grab_focus())
 
         # TODO: "press Enter to restert command"
         # TODO: provide keyboard shortcut to toggle sync check button
 
     def do_eb_button_release(self, *args):
         self._sync_check.set_active(not self._sync_check.get_active())
+        self.terminal.grab_focus()
 
 
 class Config(object):