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:
parent
b0060e71f6
commit
9d49c12dea
1 changed files with 1 additions and 0 deletions
|
@ -310,6 +310,7 @@ class Chat:
|
||||||
message_textview = self.xmls[jid].get_widget('message_textview')
|
message_textview = self.xmls[jid].get_widget('message_textview')
|
||||||
if not message_textview.is_focus():
|
if not message_textview.is_focus():
|
||||||
message_textview.grab_focus()
|
message_textview.grab_focus()
|
||||||
|
message_textview.emit('key_press_event', event)
|
||||||
|
|
||||||
def on_conversation_vadjustment_value_changed(self, widget):
|
def on_conversation_vadjustment_value_changed(self, widget):
|
||||||
jid = self.get_active_jid()
|
jid = self.get_active_jid()
|
||||||
|
|
Loading…
Add table
Reference in a new issue