mirror of
https://github.com/edu4rdshl/gnome-shell.git
synced 2026-07-17 23:24:51 +00:00
keyboard: Minor refactor
This small function is just called from a single place, drop it. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3162>
This commit is contained in:
parent
834be93666
commit
f3c26ae17f
1 changed files with 2 additions and 6 deletions
|
|
@ -1440,11 +1440,6 @@ export const Keyboard = GObject.registerClass({
|
|||
this._layers = layers;
|
||||
}
|
||||
|
||||
_ensureKeys() {
|
||||
const group = this._keyboardController.getCurrentGroup();
|
||||
this._updateLayout(group, this._purpose);
|
||||
}
|
||||
|
||||
_addRowKeys(keys, layout, emojiVisible) {
|
||||
let accumulatedWidth = 0;
|
||||
for (let i = 0; i < keys.length; ++i) {
|
||||
|
|
@ -1746,7 +1741,8 @@ export const Keyboard = GObject.registerClass({
|
|||
}
|
||||
|
||||
_updateKeys() {
|
||||
this._ensureKeys();
|
||||
const group = this._keyboardController.getCurrentGroup();
|
||||
this._updateLayout(group, this._purpose);
|
||||
this._setActiveLevel('default');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue