[the-board] [ui] Use Ctrl+Q as the key shortcut for quitting the application
- From: Lucas Rocha <lucasr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [the-board] [ui] Use Ctrl+Q as the key shortcut for quitting the application
- Date: Wed, 16 Mar 2011 12:21:05 +0000 (UTC)
commit 74b2dba629e70fb661f97c33fd406d776dacbc4e
Author: Lucas Rocha <lucasr gnome org>
Date: Wed Mar 16 12:18:05 2011 +0000
[ui] Use Ctrl+Q as the key shortcut for quitting the application
Using simply 'q' might lead to unintentional quit of the application.
Also, Ctrl+Q is more consistent with other GNOME apps.
src/js/ui/mainWindow.js | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/js/ui/mainWindow.js b/src/js/ui/mainWindow.js
index 155afb8..978153e 100644
--- a/src/js/ui/mainWindow.js
+++ b/src/js/ui/mainWindow.js
@@ -811,7 +811,7 @@ MainWindow.prototype = {
} else if (text == 's') {
this._currentPage.addThingFromState({ id: 'sound' });
return true;
- } else if (text == 'q') {
+ } else if (isControl && text == 'q') {
this._quitApp();
return true;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]