l and v keys are now printed in message textview when conversation tv has focus
This commit is contained in:
parent
3b592c9ac5
commit
281ab32034
|
@ -480,14 +480,13 @@ class Chat:
|
|||
self.notebook.next_page()
|
||||
else: # traverse for ever (eg. don't stop at last tab)
|
||||
self.notebook.set_current_page(0)
|
||||
elif event.keyval == gtk.keysyms.l or \
|
||||
event.keyval == gtk.keysyms.L:
|
||||
if event.state & gtk.gdk.CONTROL_MASK: # CTRL + L
|
||||
elif (event.keyval == gtk.keysyms.l or event.keyval == gtk.keysyms.L) \
|
||||
and event.state & gtk.gdk.CONTROL_MASK: # CTRL + L
|
||||
conversation_textview = self.xmls[jid].\
|
||||
get_widget('conversation_textview')
|
||||
conversation_textview.get_buffer().set_text('')
|
||||
elif event.keyval == gtk.keysyms.v:
|
||||
if event.state & gtk.gdk.CONTROL_MASK: # CTRL + V
|
||||
elif event.keyval == gtk.keysyms.v and event.state & gtk.gdk.CONTROL_MASK:
|
||||
# CTRL + V
|
||||
jid = self.get_active_jid()
|
||||
message_textview = self.xmls[jid].get_widget('message_textview')
|
||||
if not message_textview.is_focus():
|
||||
|
|
Loading…
Reference in New Issue