ctrl+Insert copy text too. Fixes #4580

This commit is contained in:
Yann Leboulanger 2008-12-13 14:32:37 +00:00
parent 23905492f5
commit d820977e16
1 changed files with 3 additions and 3 deletions

View File

@ -429,9 +429,9 @@ class ChatControlBase(MessageControl):
def _conv_textview_key_press_event(self, widget, event):
if gtk.gtk_version < (2, 12, 0):
return
if event.state & gtk.gdk.CONTROL_MASK and event.keyval == gtk.keysyms.c \
or event.state & gtk.gdk.SHIFT_MASK and event.keyval in (
gtk.keysyms.Page_Down, gtk.keysyms.Page_Up):
if (event.state & gtk.gdk.CONTROL_MASK and event.keyval in (gtk.keysyms.c,
gtk.keysyms.Insert)) or (event.state & gtk.gdk.SHIFT_MASK and \
event.keyval in (gtk.keysyms.Page_Down, gtk.keysyms.Page_Up)):
return False
self.parent_win.notebook.emit('key_press_event', event)
return True