add answer key shortcuts to grade now dialog

This commit is contained in:
llama 2025-06-04 10:36:56 +08:00
parent 37984233cc
commit 3852297423
No known key found for this signature in database
GPG key ID: 0B7543854B9413C3

View file

@ -1139,6 +1139,9 @@ class Browser(QMainWindow):
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)
# Add cancel button