keybindings: Resolve on us layout too if primary is not latin based

If a non-latin based keyboard layout is active, for example Cyrillic,
keybindings won't work unless we resolve the bound keysyms on a
secondary latin based layout. So, to make keybindings work on non-latin
based layouts, detect if a keymap doesn't have all of the basic latin
letters (a-z) and resolve from an additional US layout as well.

https://bugzilla.gnome.org/show_bug.cgi?id=787016
This commit is contained in:
Jonas Ådahl
2017-09-01 18:41:44 +08:00
parent 8b060342bd
commit 487b8a0430
2 changed files with 117 additions and 4 deletions

View File

@ -116,8 +116,8 @@ typedef struct
int n_iso_next_group_combos;
/*
* A primary layout, and an optional secondary layout that is
* not yet used.
* A primary layout, and an optional secondary layout for when the
* primary layout does not use the latin alphabet.
*/
MetaKeyBindingKeyboardLayout active_layouts[2];