Fix keyhint widget
This commit is contained in:
parent
16940db834
commit
1609e0d445
@ -107,7 +107,7 @@ class KeyHintView(QLabel):
|
|||||||
|
|
||||||
bindings_dict = config.key_instance.get_bindings_for(modename)
|
bindings_dict = config.key_instance.get_bindings_for(modename)
|
||||||
bindings = [(k, v) for (k, v) in sorted(bindings_dict.items())
|
bindings = [(k, v) for (k, v) in sorted(bindings_dict.items())
|
||||||
if k.matches(keyutils.KeySequence.parse(prefix)) and # FIXME
|
if keyutils.KeySequence.parse(prefix).matches(k) and
|
||||||
not blacklisted(k) and
|
not blacklisted(k) and
|
||||||
(takes_count(v) or not countstr)]
|
(takes_count(v) or not countstr)]
|
||||||
|
|
||||||
@ -121,7 +121,7 @@ class KeyHintView(QLabel):
|
|||||||
suffix_color = html.escape(config.val.colors.keyhint.suffix.fg)
|
suffix_color = html.escape(config.val.colors.keyhint.suffix.fg)
|
||||||
|
|
||||||
text = ''
|
text = ''
|
||||||
for key, cmd in bindings:
|
for seq, cmd in bindings:
|
||||||
text += (
|
text += (
|
||||||
"<tr>"
|
"<tr>"
|
||||||
"<td>{}</td>"
|
"<td>{}</td>"
|
||||||
@ -131,7 +131,7 @@ class KeyHintView(QLabel):
|
|||||||
).format(
|
).format(
|
||||||
html.escape(prefix),
|
html.escape(prefix),
|
||||||
suffix_color,
|
suffix_color,
|
||||||
html.escape(key[len(prefix):]),
|
html.escape(str(seq[len(prefix):])),
|
||||||
html.escape(cmd)
|
html.escape(cmd)
|
||||||
)
|
)
|
||||||
text = '<table>{}</table>'.format(text)
|
text = '<table>{}</table>'.format(text)
|
||||||
|
Loading…
Reference in New Issue
Block a user