Remote right/left arrow input field behavior, so it consistently moves between

levels
This commit is contained in:
Ian Gulliver
2019-06-21 20:15:18 +00:00
parent 06b246779a
commit d35d877a00
2 changed files with 4 additions and 34 deletions

View File

@@ -381,14 +381,6 @@ class Node extends EditorEntryBase {
this.stopEdit();
break;
case 'ArrowLeft':
e.stopPropagation();
if (this.input_.selectionEnd == 0) {
e.preventDefault();
this.stopEdit();
}
break;
default:
e.stopPropagation();
break;
@@ -404,13 +396,6 @@ class Node extends EditorEntryBase {
e.stopPropagation();
e.preventDefault();
break;
case 'ArrowRight':
this.startEdit();
this.input_.selectionEnd = 0;
e.stopPropagation();
e.preventDefault();
break;
}
}
@@ -478,14 +463,6 @@ class Group extends EditorEntryBase {
this.stopEdit();
break;
case 'ArrowLeft':
e.stopPropagation();
if (this.input_.selectionEnd == 0) {
e.preventDefault();
this.stopEdit();
}
break;
default:
e.stopPropagation();
break;
@@ -572,14 +549,6 @@ class Link extends EditorEntryBase {
this.stopEdit();
break;
case 'ArrowLeft':
e.stopPropagation();
if (this.input_.selectionEnd == 0) {
e.preventDefault();
this.stopEdit();
}
break;
default:
e.stopPropagation();
break;