From e56da17957c7df5e12803d1c7c9e0154f4f6032c Mon Sep 17 00:00:00 2001 From: Nick O'Leary Date: Mon, 25 Apr 2016 20:45:45 +0100 Subject: [PATCH] Disable keyboard shortcuts when editing a config node --- editor/js/ui/editor.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/editor/js/ui/editor.js b/editor/js/ui/editor.js index f77262079..454d41b53 100644 --- a/editor/js/ui/editor.js +++ b/editor/js/ui/editor.js @@ -734,9 +734,8 @@ RED.editor = (function() { trayFooter.prepend('
'); trayHeader.append(''); - if (RED.view.state() != RED.state.EDITING) { - RED.keyboard.disable(); - } + RED.keyboard.disable(); + var dialogForm = $('
').appendTo(trayBody); dialogForm.html($("script[data-template-name='"+type+"']").html()); dialogForm.find('[data-i18n]').each(function() {