diff --git a/EditorGroup.js b/EditorGroup.js index bbdc25a..5d88fe9 100644 --- a/EditorGroup.js +++ b/EditorGroup.js @@ -14,6 +14,7 @@ class EditorGroup extends EditorEntryBase { afterDomAdd() { this.nodes_.selectNext(); + this.nodes_.getSelected().xArchObj.startEdit(); } serialize() { diff --git a/EditorLink.js b/EditorLink.js index 5490934..1db1beb 100644 --- a/EditorLink.js +++ b/EditorLink.js @@ -16,6 +16,7 @@ class EditorLink extends EditorEntryBase { afterDomAdd() { this.nodes_.selectNext(); + this.nodes_.getSelected().xArchObj.startEdit(); } serialize() { diff --git a/architype.css b/architype.css index 2a30879..e2830e5 100644 --- a/architype.css +++ b/architype.css @@ -12,6 +12,7 @@ --group-background: rgba(0,0,0,0.5); --node-background: #000000; --input: rgba(255,255,255,0.2); + --input-focus: rgba(255,0,0,0.2); } :root { @@ -110,7 +111,7 @@ body { } .editor li input:focus { - border: var(--focus); + background-color: var(--input-focus); outline: none; }