messageTray: Allow to start keynav with Tab

Currently it is only possible to use keynav inside the tray if it
has been triggered with the keyboard shortcut. Make it possible to
initiate keynav by hitting Tab in other cases as well.

https://bugzilla.gnome.org/show_bug.cgi?id=682243
This commit is contained in:
Florian Müllner 2012-09-15 20:16:01 +02:00
parent ef7b74a104
commit f2af0be9ac

View File

@ -1409,6 +1409,7 @@ const MessageTray = new Lang.Class({
this._updateState(); this._updateState();
actor.grab_key_focus(); actor.grab_key_focus();
})); }));
global.focus_manager.add_group(this.actor);
this._summary = new St.BoxLayout({ name: 'summary-mode', this._summary = new St.BoxLayout({ name: 'summary-mode',
reactive: true, reactive: true,
track_hover: true, track_hover: true,
@ -1416,7 +1417,6 @@ const MessageTray = new Lang.Class({
x_expand: true, x_expand: true,
y_align: Clutter.ActorAlign.CENTER, y_align: Clutter.ActorAlign.CENTER,
y_expand: true }); y_expand: true });
global.focus_manager.add_group(this._summary);
this._summary.connect('notify::hover', Lang.bind(this, this._onSummaryHoverChanged)); this._summary.connect('notify::hover', Lang.bind(this, this._onSummaryHoverChanged));
this.actor.add_actor(this._summary); this.actor.add_actor(this._summary);
this._summary.opacity = 0; this._summary.opacity = 0;