[gnome-documents] main-window: clear the active document when using back keybinding



commit afc44e856a5c3e2e4726b9198c07ff322b921d87
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Tue Jul 17 18:25:41 2012 -0400

    main-window: clear the active document when using back keybinding

 src/mainWindow.js |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index 1a62164..7125a0b 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -158,7 +158,7 @@ const MainWindow = new Lang.Class({
              (direction == Gtk.TextDirection.RTL && keyval == Gdk.KEY_Right)) ||
             keyval == Gdk.KEY_BackSpace ||
             keyval == Gdk.KEY_Back) {
-            Global.modeController.setWindowMode(WindowMode.WindowMode.OVERVIEW);
+            Global.documentManager.setActiveItem(null);
             return true;
         }
 



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