mirror of
https://github.com/ankitects/anki.git
synced 2026-01-07 02:53:54 -05:00
Added: Undo tooltips
This commit is contained in:
parent
fe753ed9d8
commit
deb956077c
1 changed files with 4 additions and 2 deletions
|
|
@ -181,9 +181,11 @@ export class ReviewerState {
|
|||
case "z": {
|
||||
if (ctrl) {
|
||||
if (shift) {
|
||||
await redo({});
|
||||
const op = await redo({});
|
||||
this.showTooltip(tr.undoActionRedone({ action: op.operation }));
|
||||
} else {
|
||||
await undo({});
|
||||
const op = await undo({});
|
||||
this.showTooltip(tr.undoActionUndone({ action: op.operation }));
|
||||
}
|
||||
this.refresh();
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue