In ui-bootstrap
, I can disable modal closing by clicking on the black background using the {backdrop: 'static'}
option.
But now I also need to disable the ESC key, because when you press this key, the modal is closed.
How to do this?
The modal I currently have looks like this:
$uibModal.open({
templateUrl: '/ng-views/os/form.html',
backdrop: 'static',
controller: 'OSFormController'
});