if message_tv is not sensitive, don't print things there
This commit is contained in:
parent
f03cae3e0e
commit
c788403766
|
@ -819,6 +819,7 @@ class Chat:
|
||||||
pass
|
pass
|
||||||
else: # it's a normal key press make sure message_textview has focus
|
else: # it's a normal key press make sure message_textview has focus
|
||||||
message_textview = self.xmls[jid].get_widget('message_textview')
|
message_textview = self.xmls[jid].get_widget('message_textview')
|
||||||
|
if message_textview.get_property('sensitive'):
|
||||||
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)
|
message_textview.emit('key_press_event', event)
|
||||||
|
|
Loading…
Reference in New Issue