viewSelector: Allow to close the application view with escape

With the latest changes to the overview, the application view is now
clearly on a different level compared to the window picker. For that
reason it now makes sense to close it on Escape rather than hiding
the overview directly, as we do for search.

https://bugzilla.gnome.org/show_bug.cgi?id=682109
This commit is contained in:
Florian Müllner 2012-08-15 12:20:24 +02:00
parent 776b71bad5
commit ee0102e86e

View File

@ -240,6 +240,8 @@ const ViewSelector = new Lang.Class({
if (symbol == Clutter.Escape) { if (symbol == Clutter.Escape) {
if (this.active) if (this.active)
this.reset(); this.reset();
else if (this._showAppsButton.checked)
this._resetShowAppsButton();
else else
Main.overview.hide(); Main.overview.hide();
return true; return true;