From 1c2629595e9e04eb6fb787e8e8a5a93e209d5fea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20M=C3=BCllner?= Date: Wed, 14 Mar 2012 12:21:33 +0100 Subject: [PATCH] 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 file changed, 5 insertions(+) diff --git a/js/ui/keyboard.js b/js/ui/keyboard.js index c7f2b0ea1..1340e7b40 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));