don't handle keypressed in message textview is textview is not sensitive (not yet connected). Fixes #5833
This commit is contained in:
parent
05f90734ee
commit
ea07baeab9
|
@ -1875,6 +1875,9 @@ class GroupchatControl(ChatControlBase):
|
|||
# NOTE: handles mykeypress which is custom signal connected to this
|
||||
# CB in new_room(). for this singal see message_textview.py
|
||||
|
||||
if not widget.get_sensitive():
|
||||
# Textview is not sensitive, don't handle keypress
|
||||
return
|
||||
# construct event instance from binding
|
||||
event = gtk.gdk.Event(gtk.gdk.KEY_PRESS) # it's always a key-press here
|
||||
event.keyval = event_keyval
|
||||
|
|
Loading…
Reference in New Issue