mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Fix tooltips not reflecting configured shortcuts (#2657)
This commit is contained in:
parent
81a4d531e3
commit
120c6e165c
1 changed files with 6 additions and 1 deletions
|
@ -815,11 +815,16 @@ time = %(time)d;
|
||||||
else:
|
else:
|
||||||
extra = ""
|
extra = ""
|
||||||
due = self._buttonTime(i, v3_labels=labels)
|
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 """
|
return """
|
||||||
<td align=center><button %s title="%s" data-ease="%s" onclick='pycmd("ease%d");'>\
|
<td align=center><button %s title="%s" data-ease="%s" onclick='pycmd("ease%d");'>\
|
||||||
%s%s</button></td>""" % (
|
%s%s</button></td>""" % (
|
||||||
extra,
|
extra,
|
||||||
tr.actions_shortcut_key(val=i),
|
key,
|
||||||
i,
|
i,
|
||||||
i,
|
i,
|
||||||
label,
|
label,
|
||||||
|
|
Loading…
Reference in a new issue