[sushi] mainwindow: quit with space too



commit 14c8ee95b8a9053acad2a0af55ec7bbdee42ead5
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Wed Apr 27 15:06:24 2011 -0400

    mainwindow: quit with space too

 src/js/ui/mainWindow.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/js/ui/mainWindow.js b/src/js/ui/mainWindow.js
index 6155f27..713e917 100644
--- a/src/js/ui/mainWindow.js
+++ b/src/js/ui/mainWindow.js
@@ -101,7 +101,8 @@ MainWindow.prototype = {
     _onStageKeyPressEvent : function(actor, event) {
         let key = event.get_key_symbol();
 
-        if (key == Clutter.Escape)
+        if (key == Clutter.KEY_Escape ||
+            key == Clutter.KEY_space)
             this._application.quit();
     },
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]