[gnome-shell/wip/carlosg/osk-updates: 20/50] keyboard: Update OSK key model from JSON to new format
- From: Carlos Garnacho <carlosg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell/wip/carlosg/osk-updates: 20/50] keyboard: Update OSK key model from JSON to new format
- Date: Tue, 28 Jun 2022 22:44:49 +0000 (UTC)
commit f856e24bbbd4db7692ab39d81dd05c18c5becbcd
Author: Carlos Garnacho <carlosg gnome org>
Date: Wed Apr 13 16:54:59 2022 +0200
keyboard: Update OSK key model from JSON to new format
Every key is now a map able to handle more properties, so its behavior
can be extended. For now, minimally adapt to the new format so the OSK
does not break along the update.
js/ui/keyboard.js | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/js/ui/keyboard.js b/js/ui/keyboard.js
index 7ea3bf0c40..a38781ed05 100644
--- a/js/ui/keyboard.js
+++ b/js/ui/keyboard.js
@@ -1509,7 +1509,8 @@ var Keyboard = GObject.registerClass({
_addRowKeys(keys, layout) {
for (let i = 0; i < keys.length; ++i) {
let key = keys[i];
- let button = new Key(key.shift(), key);
+ let strings = key.strings;
+ let button = new Key(strings.shift(), strings);
/* Space key gets special width, dependent on the number of surrounding keys */
if (button.key == ' ')
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]