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

This commit is contained in:
Yann Leboulanger 2005-03-16 18:35:53 +00:00
parent b0060e71f6
commit 9d49c12dea
1 changed files with 1 additions and 0 deletions

View File

@ -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()