diff options
author | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-11-13 21:15:08 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@localhost.localdomain> | 2006-11-13 21:15:08 (GMT) |
commit | b2e7bc079c90e1c854aca3d4ade16a029664309e (patch) | |
tree | ddfa6c14516d7788fa1ae89b51db325b1c976ded | |
parent | ebaf01c9143cb95deabfe184efe64470842f4e8d (diff) |
Work around the unfocusable terminal bug
-rw-r--r-- | shell/view/Shell.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/shell/view/Shell.py b/shell/view/Shell.py index 7daade7..98ed9d8 100644 --- a/shell/view/Shell.py +++ b/shell/view/Shell.py @@ -81,6 +81,10 @@ class Shell(gobject.GObject): self._frame = Frame(self) self._frame.show_and_hide(3) + def _open_terminal_cb(self): + self.start_activity('org.sugar.Terminal') + return False + def __global_key_pressed_cb(self, grabber, key): if key == 'F1': self.set_zoom_level(sugar.ZOOM_ACTIVITY) @@ -93,7 +97,7 @@ class Shell(gobject.GObject): elif key == 'F5': self._frame.notify_key_press() elif key == 'F6': - self.start_activity('org.sugar.Terminal') + gobject.idle_add(self._open_terminal_cb) elif key == 'F7': self.toggle_chat_visibility() elif key == 'F8': |