[the-board] [ui] Add Ctrl+W shortcut to hide the main window
- From: Lucas Rocha <lucasr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [the-board] [ui] Add Ctrl+W shortcut to hide the main window
- Date: Wed, 16 Mar 2011 12:21:10 +0000 (UTC)
commit 8ddf206031532567dbce60d1f0e019809686d3cf
Author: Lucas Rocha <lucasr gnome org>
Date: Wed Mar 16 12:20:08 2011 +0000
[ui] Add Ctrl+W shortcut to hide the main window
This is replacing the previous Escape shortcut which was a bit
confusing. Also, Ctrl+W is more consistent with other GNOME apps.
src/js/ui/mainWindow.js | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/src/js/ui/mainWindow.js b/src/js/ui/mainWindow.js
index 978153e..362b77b 100644
--- a/src/js/ui/mainWindow.js
+++ b/src/js/ui/mainWindow.js
@@ -811,6 +811,9 @@ MainWindow.prototype = {
} else if (text == 's') {
this._currentPage.addThingFromState({ id: 'sound' });
return true;
+ } else if (isControl && text == 'w') {
+ this._hideGtkWindow();
+ return true;
} else if (isControl && text == 'q') {
this._quitApp();
return true;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]