Skip to content

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

Jonas Dreßler requested to merge verdre/gnome-shell:fix-keyboard-shift into main

If the shift key was pressed, we should switch back to the default level after the next commit. It seems that this only worked due to some superfluous signal emission so far (see mutter#3448).

After a commit, if there are content hints, we call _updateLevelFromHints(), assuming that will switch the level back to "default", but it only does that in case the LOWERCASE content hint is set. So we need to add extra handling here for the case where shift is pressed and content hints exist.

Closes: mutter#3448

Merge request reports