Add undo/redo keys

This commit is contained in:
Ian Gulliver
2019-07-11 22:43:18 +00:00
parent 498d1cbb1e
commit 7274886d76
4 changed files with 24 additions and 2 deletions

View File

@@ -194,6 +194,18 @@ class Editor extends List {
}
return;
case 'u':
history.back();
e.stopPropagation();
e.preventDefault();
return;
case 'U':
history.forward();
e.stopPropagation();
e.preventDefault();
return;
case '?':
if (this.addHelpAfter()) {
e.stopPropagation();