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

@@ -2,9 +2,10 @@
--focus: #ff0000;
--node: #4285f4;
--group: #0f9d58;
--link: #f4b400;
--link: #dba100;
--text: #ffffff;
--border: #f5f5f5;
--border: #e3e3e3;
--placeholder: #bbbbbb;
}
body {
@@ -79,7 +80,7 @@ body {
}
.editor li input::-webkit-input-placeholder {
color: var(--border);
color: var(--placeholder);
}
.editor li input:focus {

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;