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:
parent
9c8452269d
commit
8673758336
@ -1486,7 +1486,8 @@ export const Keyboard = GObject.registerClass({
|
|||||||
return layers;
|
return layers;
|
||||||
}
|
}
|
||||||
|
|
||||||
_ensureKeysForGroup(group) {
|
_ensureKeys() {
|
||||||
|
const group = this._keyboardController.getCurrentGroup();
|
||||||
if (!this._groups[group])
|
if (!this._groups[group])
|
||||||
this._groups[group] = this._createLayersForGroup(group);
|
this._groups[group] = this._createLayersForGroup(group);
|
||||||
}
|
}
|
||||||
@ -1788,7 +1789,7 @@ export const Keyboard = GObject.registerClass({
|
|||||||
}
|
}
|
||||||
|
|
||||||
_updateKeys() {
|
_updateKeys() {
|
||||||
this._ensureKeysForGroup(this._keyboardController.getCurrentGroup());
|
this._ensureKeys();
|
||||||
this._setActiveLayer(0);
|
this._setActiveLayer(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user