mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 14:02: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:
|
||||
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,
|
||||
|
|
Loading…
Reference in a new issue