From d820977e1683884bf68dda720c923b8ced83e860 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Sat, 13 Dec 2008 14:32:37 +0000 Subject: [PATCH] ctrl+Insert copy text too. Fixes #4580 --- src/chat_control.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/chat_control.py b/src/chat_control.py index 0542628aa..e7ad80d41 100644 --- a/src/chat_control.py +++ b/src/chat_control.py @@ -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