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();
|
||||
editStack.pop();
|
||||
if (editStack.length === 0) {
|
||||
RED.view.focus();
|
||||
}
|
||||
},
|
||||
show: function() {
|
||||
if (editing_node) {
|
||||
@ -828,6 +831,9 @@ RED.editor = (function() {
|
||||
close: function() {
|
||||
RED.workspaces.refresh();
|
||||
editStack.pop();
|
||||
if (editStack.length === 0) {
|
||||
RED.view.focus();
|
||||
}
|
||||
},
|
||||
show: function() {
|
||||
if (editing_config_node) {
|
||||
@ -1217,6 +1223,9 @@ RED.editor = (function() {
|
||||
RED.workspaces.refresh();
|
||||
editStack.pop();
|
||||
editing_node = null;
|
||||
if (editStack.length === 0) {
|
||||
RED.view.focus();
|
||||
}
|
||||
},
|
||||
show: function() {
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user