mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Disable keyboard shortcuts when editing a config node
This commit is contained in:
parent
71b2e714ee
commit
e56da17957
@ -734,9 +734,8 @@ RED.editor = (function() {
|
|||||||
trayFooter.prepend('<div id="node-config-dialog-user-count"><i class="fa fa-info-circle"></i> <span></span></div>');
|
trayFooter.prepend('<div id="node-config-dialog-user-count"><i class="fa fa-info-circle"></i> <span></span></div>');
|
||||||
trayHeader.append('<span id="node-config-dialog-scope-container"><span id="node-config-dialog-scope-warning" data-i18n="[title]editor.errors.scopeChange"><i class="fa fa-warning"></i></span><select id="node-config-dialog-scope"></select></span>');
|
trayHeader.append('<span id="node-config-dialog-scope-container"><span id="node-config-dialog-scope-warning" data-i18n="[title]editor.errors.scopeChange"><i class="fa fa-warning"></i></span><select id="node-config-dialog-scope"></select></span>');
|
||||||
|
|
||||||
if (RED.view.state() != RED.state.EDITING) {
|
RED.keyboard.disable();
|
||||||
RED.keyboard.disable();
|
|
||||||
}
|
|
||||||
var dialogForm = $('<form id="node-config-dialog-edit-form" class="form-horizontal"></form>').appendTo(trayBody);
|
var dialogForm = $('<form id="node-config-dialog-edit-form" class="form-horizontal"></form>').appendTo(trayBody);
|
||||||
dialogForm.html($("script[data-template-name='"+type+"']").html());
|
dialogForm.html($("script[data-template-name='"+type+"']").html());
|
||||||
dialogForm.find('[data-i18n]').each(function() {
|
dialogForm.find('[data-i18n]').each(function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user