keyboard: Rename function

Avoid the "ForGroup" suffix, and get the keyboard group implicitly.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3162>
This commit is contained in:
Carlos Garnacho 2024-01-26 16:19:58 +01:00
parent 9c8452269d
commit 8673758336

View File

@ -1486,7 +1486,8 @@ export const Keyboard = GObject.registerClass({
return layers;
}
_ensureKeysForGroup(group) {
_ensureKeys() {
const group = this._keyboardController.getCurrentGroup();
if (!this._groups[group])
this._groups[group] = this._createLayersForGroup(group);
}
@ -1788,7 +1789,7 @@ export const Keyboard = GObject.registerClass({
}
_updateKeys() {
this._ensureKeysForGroup(this._keyboardController.getCurrentGroup());
this._ensureKeys();
this._setActiveLayer(0);
}