Add tooltip to 'More' button to show keyboard shortcut (#2193)

* Add tooltip to 'More' button to show keyboard shortcut

* Remove unused 'rem' key
This commit is contained in:
Hikaru Y 2022-11-17 09:03:38 +09:00 committed by GitHub
parent 434287a50a
commit dc4ac1da66
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -667,7 +667,7 @@ class Reviewer:
<td align=center valign=top id=middle>
</td>
<td align=right valign=top class=stat>
<button onclick="pycmd('more');">
<button title="%(morekey)s" onclick="pycmd('more');">
%(more)s %(downArrow)s
<span id=time class=stattxt></span>
</button>
@ -679,10 +679,10 @@ class Reviewer:
time = %(time)d;
</script>
""" % dict(
rem=self._remaining(),
edit=tr.studying_edit(),
editkey=tr.actions_shortcut_key(val="E"),
more=tr.studying_more(),
morekey=tr.actions_shortcut_key(val="M"),
downArrow=downArrow(),
time=self.card.time_taken() // 1000,
)