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

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