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

Disable keyboard handler whilst workspace dialogs are open

Fixes #128
This commit is contained in:
Nick O'Leary 2013-12-28 17:59:45 +00:00
parent 24c373ecc2
commit 4e3594d617

View File

@ -1124,7 +1124,13 @@ RED.view = function() {
$( this ).dialog( "close" ); $( this ).dialog( "close" );
} }
} }
] ],
open: function(e) {
RED.keyboard.disable();
},
close: function(e) {
RED.keyboard.enable();
}
}); });
$( "#node-dialog-delete-workspace" ).dialog({ $( "#node-dialog-delete-workspace" ).dialog({
modal: true, modal: true,
@ -1152,7 +1158,14 @@ RED.view = function() {
$( this ).dialog( "close" ); $( this ).dialog( "close" );
} }
} }
] ],
open: function(e) {
RED.keyboard.disable();
},
close: function(e) {
RED.keyboard.enable();
}
}); });
return { return {