Commit ec8044c4 authored by Yann Leboulanger's avatar Yann Leboulanger

prevent infinite loop when pressing ctrl+PageUp / Down

parent 37851df6
......@@ -588,9 +588,12 @@ class MessageWindow:
def _on_notebook_key_press(self, widget, event):
control = self.get_active_control()
#when we get a key press event in conversation textview,
# Ctrl+PageUP / DOWN has to be handled by notebook
if event.state & gtk.gdk.CONTROL_MASK and event.keyval in (
gtk.keysyms.Page_Down, gtk.keysyms.Page_Up):
return False
if isinstance(control, ChatControlBase):
#we forwarded it to message textview
# we forwarded it to message textview
control.msg_textview.emit('key_press_event', event)
control.msg_textview.grab_focus()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment