AppMenuButton: bind "can-focus" to "reactive"

When changing to an empty workspace we make the AppMenuButton invisible but
the user could still get to the menu using keyboard navigation.

https://bugzilla.gnome.org/show_bug.cgi?id=643867
This commit is contained in:
Rui Matos 2011-11-16 00:23:04 +00:00
parent 21e2280825
commit bdd65fe755

View File

@ -249,6 +249,7 @@ const AppMenuButton = new Lang.Class({
let bin = new St.Bin({ name: 'appMenu' }); let bin = new St.Bin({ name: 'appMenu' });
this.actor.add_actor(bin); this.actor.add_actor(bin);
this.actor.bind_property("reactive", this.actor, "can-focus", 0);
this.actor.reactive = false; this.actor.reactive = false;
this._targetIsCurrent = false; this._targetIsCurrent = false;