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
1 changed files with 15 additions and 2 deletions

View File

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