mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Refocus workspace after closing edit tray
This commit is contained in:
parent
726d9c8ec5
commit
9ae4745ca5
@ -677,6 +677,9 @@ RED.editor = (function() {
|
|||||||
}
|
}
|
||||||
RED.workspaces.refresh();
|
RED.workspaces.refresh();
|
||||||
editStack.pop();
|
editStack.pop();
|
||||||
|
if (editStack.length === 0) {
|
||||||
|
RED.view.focus();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
show: function() {
|
show: function() {
|
||||||
if (editing_node) {
|
if (editing_node) {
|
||||||
@ -828,6 +831,9 @@ RED.editor = (function() {
|
|||||||
close: function() {
|
close: function() {
|
||||||
RED.workspaces.refresh();
|
RED.workspaces.refresh();
|
||||||
editStack.pop();
|
editStack.pop();
|
||||||
|
if (editStack.length === 0) {
|
||||||
|
RED.view.focus();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
show: function() {
|
show: function() {
|
||||||
if (editing_config_node) {
|
if (editing_config_node) {
|
||||||
@ -1217,6 +1223,9 @@ RED.editor = (function() {
|
|||||||
RED.workspaces.refresh();
|
RED.workspaces.refresh();
|
||||||
editStack.pop();
|
editStack.pop();
|
||||||
editing_node = null;
|
editing_node = null;
|
||||||
|
if (editStack.length === 0) {
|
||||||
|
RED.view.focus();
|
||||||
|
}
|
||||||
},
|
},
|
||||||
show: function() {
|
show: function() {
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user