Stop us from undoing right off the page

This commit is contained in:
Ian Gulliver
2019-07-12 00:45:03 +00:00
parent 7274886d76
commit ed5c79c05d
2 changed files with 26 additions and 17 deletions

View File

@@ -194,18 +194,6 @@ 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();