mirror of
https://github.com/ankitects/anki.git
synced 2026-01-09 03:53:55 -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": {
|
case "z": {
|
||||||
if (ctrl) {
|
if (ctrl) {
|
||||||
if (shift) {
|
if (shift) {
|
||||||
await redo({});
|
const op = await redo({});
|
||||||
|
this.showTooltip(tr.undoActionRedone({ action: op.operation }));
|
||||||
} else {
|
} else {
|
||||||
await undo({});
|
const op = await undo({});
|
||||||
|
this.showTooltip(tr.undoActionUndone({ action: op.operation }));
|
||||||
}
|
}
|
||||||
this.refresh();
|
this.refresh();
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue