[gnome-shell] keyboard: Enforce LTR layout for keyboard layout



commit 1c2629595e9e04eb6fb787e8e8a5a93e209d5fea
Author: Florian MÃllner <fmuellner gnome org>
Date:   Wed Mar 14 12:21:33 2012 +0100

    keyboard: Enforce LTR layout for keyboard layout
    
    The onscreen keyboard should not follow the locale's text direction,
    but order keys according to the selected keyboard layout. Effectively
    this means enforcing LTR on the keyboard actor.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=672024

 js/ui/keyboard.js |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/js/ui/keyboard.js b/js/ui/keyboard.js
index c7f2b0e..1340e7b 100644
--- a/js/ui/keyboard.js
+++ b/js/ui/keyboard.js
@@ -269,6 +269,11 @@ const Keyboard = new Lang.Class({
 
         this._addKeys();
 
+        // Keys should be layout according to the group, not the
+        // locale; as Caribou already provides the expected layout,
+        // this means enforcing LTR for all locales.
+        this.actor.text_direction = Clutter.TextDirection.LTR;
+
         this._keyboardNotifyId = this._keyboard.connect('notify::active-group', Lang.bind(this, this._onGroupChanged));
         this._focusNotifyId = global.stage.connect('notify::key-focus', Lang.bind(this, this._onKeyFocusChanged));
 



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