1
0
mirror of https://github.com/node-red/node-red.git synced 2023-10-10 13:36:53 +02:00

Revert disable/enable logic proposed before

This commit is contained in:
ralphwetzel 2022-06-30 21:51:51 +02:00
parent d81523370e
commit 6090a5b274

View File

@ -1033,8 +1033,6 @@ RED.editor = (function() {
})
},
open: function(tray, done) {
RED.keyboard.disable();
if (editing_node.hasOwnProperty('outputs')) {
editing_node.__outputs = editing_node.outputs;
}
@ -1077,8 +1075,6 @@ RED.editor = (function() {
});
},
close: function() {
RED.keyboard.enable();
if (RED.view.state() != RED.state.IMPORT_DRAGGING) {
RED.view.state(RED.state.DEFAULT);
}
@ -1182,8 +1178,6 @@ RED.editor = (function() {
})
},
open: function(tray, done) {
RED.keyboard.disable();
var trayHeader = tray.find(".red-ui-tray-header");
var trayBody = tray.find('.red-ui-tray-body');
var trayFooter = tray.find(".red-ui-tray-footer");
@ -1264,8 +1258,6 @@ RED.editor = (function() {
});
},
close: function() {
RED.keyboard.enable();
RED.workspaces.refresh();
activeEditPanes.forEach(function(pane) {
@ -1643,8 +1635,6 @@ RED.editor = (function() {
})
},
open: function(tray, done) {
RED.keyboard.disable();
var trayFooter = tray.find(".red-ui-tray-footer");
var trayFooterLeft = $("<div/>", {
class: "red-ui-tray-footer-left"
@ -1676,8 +1666,6 @@ RED.editor = (function() {
});
},
close: function() {
RED.keyboard.enable();
if (RED.view.state() != RED.state.IMPORT_DRAGGING) {
RED.view.state(RED.state.DEFAULT);
}
@ -1767,8 +1755,6 @@ RED.editor = (function() {
})
},
open: function(tray, done) {
RED.keyboard.disable();
var trayFooter = tray.find(".red-ui-tray-footer");
var trayFooterLeft = $("<div/>", {
class: "red-ui-tray-footer-left"
@ -1790,8 +1776,6 @@ RED.editor = (function() {
},
close: function() {
RED.keyboard.enable();
if (RED.view.state() != RED.state.IMPORT_DRAGGING) {
RED.view.state(RED.state.DEFAULT);
}
@ -1904,8 +1888,6 @@ RED.editor = (function() {
})
},
open: function(tray, done) {
RED.keyboard.disable();
var trayFooter = tray.find(".red-ui-tray-footer");
var trayBody = tray.find('.red-ui-tray-body');
trayBody.parent().css('overflow','hidden');
@ -1933,8 +1915,6 @@ RED.editor = (function() {
});
},
close: function() {
RED.keyboard.enable();
if (RED.view.state() != RED.state.IMPORT_DRAGGING) {
RED.view.state(RED.state.DEFAULT);
}