[gnome-shell/T29763: 66/249] Allow returning to desktop when pressing the ESC key
- From: Matthew Leeds <mwleeds src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/T29763: 66/249] Allow returning to desktop when pressing the ESC key
- Date: Thu, 21 May 2020 18:14:41 +0000 (UTC)
commit 83360d7686b5d4d573fccdd58e185f79881477aa
Author: Mario Sanchez Prada <mario endlessm com>
Date: Thu Sep 14 11:35:26 2017 +0100
Allow returning to desktop when pressing the ESC key
This allows to quickly exit the window picker mode using the keyboard.
js/ui/viewSelector.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/js/ui/viewSelector.js b/js/ui/viewSelector.js
index f1413faac6..4917256ad2 100644
--- a/js/ui/viewSelector.js
+++ b/js/ui/viewSelector.js
@@ -398,10 +398,13 @@ var ViewSelector = GObject.registerClass({
let symbol = event.get_key_symbol();
if (symbol === Clutter.KEY_Escape) {
- if (this._searchActive)
+ if (this._activePage == this._workspacesPage)
+ Main.overview.toggleWindows();
+ else if (this._searchActive)
this.reset();
else
Main.overview.hide();
+
return Clutter.EVENT_STOP;
} else if (this._shouldTriggerSearch(symbol)) {
this.startSearch(event);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]