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
This commit is contained in:
@ -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));
|
||||
|
||||
|
Reference in New Issue
Block a user