From 9d49c12deae7b3c2aaf002b315ff84ce3d2cded4 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger <asterix@lagaule.org> Date: Wed, 16 Mar 2005 18:35:53 +0000 Subject: [PATCH] when we press a "normal" key and message_buffer doesn't have the focus, we give it the focus, and we send it the event --- plugins/gtkgui/chat.py | 1 + 1 file changed, 1 insertion(+) diff --git a/plugins/gtkgui/chat.py b/plugins/gtkgui/chat.py index da81519303..572f607610 100644 --- a/plugins/gtkgui/chat.py +++ b/plugins/gtkgui/chat.py @@ -310,6 +310,7 @@ class Chat: message_textview = self.xmls[jid].get_widget('message_textview') if not message_textview.is_focus(): message_textview.grab_focus() + message_textview.emit('key_press_event', event) def on_conversation_vadjustment_value_changed(self, widget): jid = self.get_active_jid() -- GitLab