when we press ctrl+PageUp/Down / Tab in the conversation textview, send the event to the notebook
This commit is contained in:
parent
765e720357
commit
7df4dfc655
|
@ -269,6 +269,18 @@ class Chat:
|
||||||
|
|
||||||
self.show_title()
|
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):
|
def on_chat_notebook_key_press_event(self, widget, event):
|
||||||
st = '1234567890' # zero is here cause humans count from 1, pc from 0 :P
|
st = '1234567890' # zero is here cause humans count from 1, pc from 0 :P
|
||||||
jid = self.get_active_jid()
|
jid = self.get_active_jid()
|
||||||
|
|
|
@ -8770,6 +8770,7 @@ Custom</property>
|
||||||
<property name="text" translatable="yes"></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="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="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>
|
</widget>
|
||||||
</child>
|
</child>
|
||||||
</widget>
|
</widget>
|
||||||
|
|
Loading…
Reference in New Issue