mirror of
https://github.com/ankitects/anki.git
synced 2026-01-08 03:23:54 -05:00
Added: Copy card
This commit is contained in:
parent
d549112a6b
commit
dc8925a492
3 changed files with 10 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue