More key shortcut cases

This commit is contained in:
Ian Gulliver
2019-07-11 19:58:22 +00:00
parent f4893cd20d
commit 0ecbd40642
3 changed files with 60 additions and 27 deletions

View File

@@ -64,6 +64,7 @@ class EditorNode extends EditorEntryBase {
onInputKeyDown(e) {
switch (e.key) {
case 'Enter':
e.preventDefault();
e.stopPropagation();
if (this.elem_.nextElementSibling &&
this.elem_.nextElementSibling.xArchObj &&
@@ -75,6 +76,8 @@ class EditorNode extends EditorEntryBase {
break;
case 'Escape':
case '`':
e.preventDefault();
e.stopPropagation();
this.stopEdit();
break;