Fix tooltips not reflecting configured shortcuts (#2657)

This commit is contained in:
Abdo 2023-09-14 04:33:42 +03:00 committed by GitHub
parent 81a4d531e3
commit 120c6e165c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -815,11 +815,16 @@ time = %(time)d;
else:
extra = ""
due = self._buttonTime(i, v3_labels=labels)
key = (
tr.actions_shortcut_key(val=aqt.mw.pm.get_answer_key(i))
if aqt.mw.pm.get_answer_key(i)
else ""
)
return """
<td align=center><button %s title="%s" data-ease="%s" onclick='pycmd("ease%d");'>\
%s%s</button></td>""" % (
extra,
tr.actions_shortcut_key(val=i),
key,
i,
i,
label,