diff options
Diffstat (limited to 'sugar/chat/ChatWindow.py')
-rw-r--r-- | sugar/chat/ChatWindow.py | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/sugar/chat/ChatWindow.py b/sugar/chat/ChatWindow.py index 59cb02c..b06175d 100644 --- a/sugar/chat/ChatWindow.py +++ b/sugar/chat/ChatWindow.py @@ -8,7 +8,6 @@ class ChatWindow(gtk.Window): def __init__(self): gtk.Window.__init__(self) self._chat = None - self.connect("key-press-event", self.__key_press_event_cb) def set_chat(self, chat): if self._chat != None: @@ -17,12 +16,3 @@ class ChatWindow(gtk.Window): self._chat = chat self.add(self._chat) self._chat.show() - - def __key_press_event_cb(self, window, event): - if event.keyval == gtk.keysyms.s and \ - event.state & gtk.gdk.CONTROL_MASK: - if self._chat.get_mode() == Chat.SKETCH_MODE: - self._chat.set_mode(Chat.TEXT_MODE) - elif self._chat.get_mode() == Chat.TEXT_MODE: - self._chat.set_mode(Chat.SKETCH_MODE) - |