mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
add answer key shortcuts to grade now dialog (#4055)
This commit is contained in:
parent
174b199164
commit
996fa8bcb0
1 changed files with 3 additions and 0 deletions
|
@ -1139,6 +1139,9 @@ class Browser(QMainWindow):
|
||||||
dialog=dialog,
|
dialog=dialog,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
if key := aqt.mw.pm.get_answer_key(ease):
|
||||||
|
QShortcut(key, dialog, activated=btn.click) # type: ignore
|
||||||
|
btn.setToolTip(tr.actions_shortcut_key(key))
|
||||||
layout.addWidget(btn)
|
layout.addWidget(btn)
|
||||||
|
|
||||||
# Add cancel button
|
# Add cancel button
|
||||||
|
|
Loading…
Reference in a new issue