diff --git a/plugins/gtkgui/chat.py b/plugins/gtkgui/chat.py index 9421f79d0935e246b01188ff77fa85d2e44de820..38aee75770f682cd24b8202a968a28cc74b4698c 100644 --- a/plugins/gtkgui/chat.py +++ b/plugins/gtkgui/chat.py @@ -269,6 +269,18 @@ class Chat: self.show_title() + def on_conversation_textview_key_press_event(self, widget, event): + """Do not black these evnts and send them to the notebook""" + if event.keyval == gtk.keysyms.Tab and \ + (event.state & gtk.gdk.CONTROL_MASK): # CTRL + TAB + self.notebook.emit('key_press_event', event) + elif event.keyval == gtk.keysyms.Page_Down: # PAGE DOWN + if event.state & gtk.gdk.CONTROL_MASK: # CTRL + PAGE DOWN + self.notebook.emit('key_press_event', event) + elif event.keyval == gtk.keysyms.Page_Up: # PAGE UP + if event.state & gtk.gdk.CONTROL_MASK: # CTRL + PAGE UP + self.notebook.emit('key_press_event', event) + def on_chat_notebook_key_press_event(self, widget, event): st = '1234567890' # zero is here cause humans count from 1, pc from 0 :P jid = self.get_active_jid() diff --git a/plugins/gtkgui/gtkgui.glade b/plugins/gtkgui/gtkgui.glade index 4357274699f9ea36654b6ae4097e58f709acc550..1640437b74981092ebf640d2e87782e9c9ccd5b4 100644 --- a/plugins/gtkgui/gtkgui.glade +++ b/plugins/gtkgui/gtkgui.glade @@ -8770,6 +8770,7 @@ Custom</property> <property name="text" translatable="yes"></property> <signal name="motion_notify_event" handler="on_conversation_textview_motion_notify_event" last_modification_time="Thu, 10 Mar 2005 16:07:43 GMT"/> <signal name="button_press_event" handler="on_conversation_textview_button_press_event" last_modification_time="Thu, 10 Mar 2005 17:54:22 GMT"/> + <signal name="key_press_event" handler="on_conversation_textview_key_press_event" last_modification_time="Thu, 31 Mar 2005 14:50:51 GMT"/> </widget> </child> </widget>