[gnome-documents] main-window: switch to overview with BackSpace



commit eb4bd2c8c19f797a4165a8f0aadf42fb146041d1
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu May 31 11:45:10 2012 -0400

    main-window: switch to overview with BackSpace
    
    Also make Escape switch back to overview only if we're fullscreen.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=677139

 src/mainWindow.js |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index 3a216fc..65bb7ba 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -175,7 +175,8 @@ MainWindow.prototype = {
             return true;
         }
 
-        if (keyval == Gdk.KEY_Escape ||
+        if ((fullscreen && keyval == Gdk.KEY_Escape) ||
+            keyval == Gdk.KEY_BackSpace ||
             keyval == Gdk.KEY_Back) {
             Global.modeController.setWindowMode(WindowMode.WindowMode.OVERVIEW);
             return true;



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