[gnome-documents/gnome-3-10] mainWindow: Fix typo in back key detection for RTL locales



commit 133baad90d599f1d02d5801a30578311071a0731
Author: Debarshi Ray <debarshir gnome org>
Date:   Wed Jan 29 16:31:17 2014 +0100

    mainWindow: Fix typo in back key detection for RTL locales
    
    https://bugzilla.gnome.org/show_bug.cgi?id=723242

 src/mainWindow.js |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/mainWindow.js b/src/mainWindow.js
index 74c83bc..2e28b1e 100644
--- a/src/mainWindow.js
+++ b/src/mainWindow.js
@@ -206,8 +206,8 @@ const MainWindow = new Lang.Class({
         let state = event.get_state()[1];
 
         let isBack = (((state & Gdk.ModifierType.MOD1_MASK) != 0 &&
-                       (direction == Gtk.TextDirection.LTR && keyval == Gdk.KEY_Left) ||
-                       (direction == Gtk.TextDirection.RTL && keyval == Gdk.KEY_Right)) ||
+                       ((direction == Gtk.TextDirection.LTR && keyval == Gdk.KEY_Left) ||
+                       (direction == Gtk.TextDirection.RTL && keyval == Gdk.KEY_Right))) ||
                       keyval == Gdk.KEY_Back);
 
         return isBack;


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