keyboard: Avoid markup escaping when setting button labels

These are no longer interpreted as Pango markup.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3149>
This commit is contained in:
Carlos Garnacho 2024-01-29 16:35:35 +01:00 committed by Florian Müllner
parent 92bea8a73e
commit 1940573bef

View File

@ -434,8 +434,7 @@ const Key = GObject.registerClass({
} else if (label) { } else if (label) {
button.set_label(label); button.set_label(label);
} else if (commitString) { } else if (commitString) {
const str = GLib.markup_escape_text(commitString, -1); button.set_label(commitString);
button.set_label(str);
} }
button.keyWidth = 1; button.keyWidth = 1;