cosmetic changes
This commit is contained in:
parent
7e6bcdc6ed
commit
15acf57f5f
|
@ -281,7 +281,7 @@ class ChatControlBase(MessageControl):
|
|||
self.conv_textview.tv.show()
|
||||
self._paint_banner()
|
||||
|
||||
# For JEP-0172
|
||||
# For XEP-0172
|
||||
self.user_nick = None
|
||||
|
||||
self.smooth = True
|
||||
|
|
|
@ -628,14 +628,15 @@ class MessageWindow(object):
|
|||
self.show_title(control = new_ctrl)
|
||||
|
||||
def _on_notebook_key_press(self, widget, event):
|
||||
control = self.get_active_control()
|
||||
# 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
|
||||
# when tab itselft is selected, make sure <- and -> are allowed for navigating between tabs
|
||||
# when tab itself is selected, make sure <- and -> are allowed for navigating between tabs
|
||||
if event.keyval in (gtk.keysyms.Left, gtk.keysyms.Right):
|
||||
return False
|
||||
|
||||
control = self.get_active_control()
|
||||
if isinstance(control, ChatControlBase):
|
||||
# we forwarded it to message textview
|
||||
control.msg_textview.emit('key_press_event', event)
|
||||
|
|
Loading…
Reference in New Issue