messageTray: Focusing the text entry should force chats to stay open

https://bugzilla.gnome.org/show_bug.cgi?id=682236
This commit is contained in:
Debarshi Ray
2012-09-05 18:59:50 +02:00
parent ec52928736
commit 5030d59fcc
2 changed files with 13 additions and 0 deletions

View File

@ -756,6 +756,14 @@ const ChatNotification = new Lang.Class({
this._responseEntry.clutter_text.connect('text-changed', Lang.bind(this, this._onEntryChanged));
this.setActionArea(this._responseEntry);
this._responseEntry.clutter_text.connect('key-focus-in', Lang.bind(this, function() {
this.focused = true;
}));
this._responseEntry.clutter_text.connect('key-focus-out', Lang.bind(this, function() {
this.focused = false;
this.emit('unfocused');
}));
this._oldMaxScrollAdjustment = 0;
this._createScrollArea();
this._lastGroup = null;