keyboard: Fix fallback layout when using variants
Commitc1ec7b2ff
meant to fall back to the base layout in case a variant like `fr+oss` is set up, but as we are checking for '+' on the array rather than the layout name, the fallback only "works" for a layout that is literally called '+', whoops. https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/2471 (cherry picked from commitd29e5765ba
)
This commit is contained in:
parent
0a50b6ea01
commit
3d7ee7856f
@ -467,7 +467,7 @@ Signals.addSignalMethods(Key.prototype);
|
||||
var KeyboardModel = class {
|
||||
constructor(groupName) {
|
||||
let names = [groupName];
|
||||
if (names.includes('+'))
|
||||
if (groupName.includes('+'))
|
||||
names.push(groupName.replace(/\+.*/, ''));
|
||||
names.push('us');
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user