From 6b93661048f1b290dea6cce5c1bf89c4de8f3da0 Mon Sep 17 00:00:00 2001 From: actionless Date: Fri, 23 Apr 2021 07:33:22 +0200 Subject: [PATCH] fix(awful: hotkeys_popup: insert_keys): handle case when user actually binded some key like `<` or `>` which require xml escape for pango --- lib/awful/hotkeys_popup/widget.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/awful/hotkeys_popup/widget.lua b/lib/awful/hotkeys_popup/widget.lua index 3b68b70c..2dfba1cf 100644 --- a/lib/awful/hotkeys_popup/widget.lua +++ b/lib/awful/hotkeys_popup/widget.lua @@ -475,7 +475,7 @@ function widget.new(args) table.insert(((i 1 then for each_key_idx, each_key in ipairs(key.keylist) do - key_label = key_label .. each_key + key_label = key_label .. gstring.xml_escape(each_key) if each_key_idx ~= #key.keylist then key_label = key_label .. markup.fg(self.modifiers_fg, '/') end end elseif key.key then - key_label = key.key + key_label = gstring.xml_escape(key.key) end local rendered_hotkey = markup.font(self.font, modifiers .. key_label .. " "