Automatically move focus to empty next sibling, mostly for Link

This commit is contained in:
Ian Gulliver
2019-06-23 05:53:25 +00:00
parent e539fee975
commit 7e30b3ef1e

View File

@@ -559,7 +559,13 @@ class Node extends EditorEntryBase {
}
stopEdit() {
this.elem_.focus();
if (this.elem_.nextElementSibling &&
this.elem_.nextElementSibling.xArchObj &&
this.elem_.nextElementSibling.xArchObj.getLabel() == '') {
this.elem_.nextElementSibling.xArchObj.startEdit();
} else {
this.elem_.focus();
}
}
}