Merge branch 'fix-keyboard-shift' into 'main'

keyboard: Set level back to default after commit even when there are hints

Closes #7714

See merge request GNOME/gnome-shell!3286
This commit is contained in:
Jonas Dreßler 2024-06-29 20:08:44 +00:00
commit 27c34b983f

View file

@ -1505,10 +1505,14 @@ export const Keyboard = GObject.registerClass({
this._disableAllModifiers();
if (layout.mode === 'default' ||
(layout.mode === 'latched' && !this._latched)) {
if (this._contentHint !== 0)
if (this._contentHint !== 0) {
if (layout.mode === 'latched' && !this._latched)
this._setActiveLevel('default');
this._updateLevelFromHints();
else
} else {
this._setActiveLevel('default');
}
}
}).catch(console.error);
});