Added: Copy card

This commit is contained in:
Luc Mcgrady 2025-11-12 17:35:41 +00:00
parent d549112a6b
commit dc8925a492
No known key found for this signature in database
GPG key ID: 4F3D7A0B17CC3D9C
3 changed files with 10 additions and 1 deletions

View file

@ -717,6 +717,7 @@ def open_reviewer_menu():
"EditCurrent": aqt.mw.onEditCurrent,
"SetDueDate": reviewer.on_set_due,
"CardInfo": on_card_info,
"CreateCopy": reviewer.on_create_copy,
}
req = OpenReviewerMenuRequest.FromString(request.data)

View file

@ -66,7 +66,11 @@ License: GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html
shortcut: "!",
onClick: state.buryOrSuspendCurrentNote.bind(state, true),
},
{ name: tr.actionsCreateCopy(), shortcut: "Ctrl+Alt+E", onClick: todo },
{
name: tr.actionsCreateCopy(),
shortcut: "Ctrl+Alt+E",
onClick: state.displayCreateCopyMenu.bind(state),
},
{
name: tr.studyingDeleteNote(),
shortcut: /* isMac ? "Ctrl+Backspace" :*/ "Ctrl+Delete",

View file

@ -117,6 +117,10 @@ export class ReviewerState {
this.displayMenu("CardInfo");
}
public displayCreateCopyMenu() {
this.displayMenu("CreateCopy");
}
public showTooltip(message: string) {
clearTimeout(this.tooltipMessageTimeout);
this.tooltipMessage.set(message);