From c489298377e568c7a0505a4acb70e62c15e1e393 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Fri, 11 Mar 2005 13:44:27 +0000 Subject: [PATCH] ctrl+c now works in conversatin_textview --- plugins/gtkgui/gtkgui.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/gtkgui/gtkgui.py b/plugins/gtkgui/gtkgui.py index aa8cc2718..dd2ece85a 100644 --- a/plugins/gtkgui/gtkgui.py +++ b/plugins/gtkgui/gtkgui.py @@ -557,6 +557,11 @@ class tabbed_chat_window: self.chat_notebook.set_current_page(current+1) else: self.chat_notebook.set_current_page(0) + elif (event.state & gtk.gdk.CONTROL_MASK) or (event.keyval ==\ + gtk.keysyms.Control_L) or (event.keyval == gtk.keysyms.Control_R): + # we pressed a control key or ctrl+sth : we don't block the event + # in order to let ctrl+c do its work + pass else: # it's a normal key press make sure message_textview has focus message_textview = self.xmls[jid].get_widget('message_textview') if not message_textview.is_focus():