From ea07baeab930ca3f6712de629566e68c6ea26fa1 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Mon, 9 Aug 2010 12:14:59 +0200 Subject: [PATCH] don't handle keypressed in message textview is textview is not sensitive (not yet connected). Fixes #5833 --- src/groupchat_control.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/groupchat_control.py b/src/groupchat_control.py index 9296667f3..3f50750e2 100644 --- a/src/groupchat_control.py +++ b/src/groupchat_control.py @@ -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