mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-18 07:34:54 +00:00
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:
parent
e91f4e88b5
commit
1c2629595e
1 changed files with 5 additions and 0 deletions
|
|
@ -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));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue