From 86737583363f930d1d6159779277f834d0991d40 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Fri, 26 Jan 2024 16:19:58 +0100 Subject: [PATCH] keyboard: Rename function Avoid the "ForGroup" suffix, and get the keyboard group implicitly. Part-of: --- js/ui/keyboard.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/ui/keyboard.js b/js/ui/keyboard.js index 05ac18a8b..0c68a5971 100644 --- a/js/ui/keyboard.js +++ b/js/ui/keyboard.js @@ -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); }