[gnome-documents] main-window: also switch back to overview on Alt+Left
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] main-window: also switch back to overview on Alt+Left
- Date: Thu, 31 May 2012 18:16:25 +0000 (UTC)
commit e5e8847616dc7d011183d32dbea3f7da32e85ef9
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Thu May 31 14:15:23 2012 -0400
main-window: also switch back to overview on Alt+Left
This is consistent with other applications.
src/mainWindow.js | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index 65bb7ba..2e54080 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -169,6 +169,7 @@ MainWindow.prototype = {
let keyval = event.get_keyval()[1];
let state = event.get_state()[1];
let fullscreen = Global.modeController.getFullscreen();
+ let direction = this.window.get_direction();
if (keyval == Gdk.KEY_f) {
Global.modeController.toggleFullscreen();
@@ -176,6 +177,9 @@ MainWindow.prototype = {
}
if ((fullscreen && keyval == Gdk.KEY_Escape) ||
+ ((state & Gdk.ModifierType.MOD1_MASK) != 0 &&
+ (direction == Gtk.TextDirection.LTR && keyval == Gdk.KEY_Left) ||
+ (direction == Gtk.TextDirection.RTL && keyval == Gdk.KEY_Right)) ||
keyval == Gdk.KEY_BackSpace ||
keyval == Gdk.KEY_Back) {
Global.modeController.setWindowMode(WindowMode.WindowMode.OVERVIEW);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]