AngularJS alert and confirm dialogs may now be closed with the space bar
in addition to the escape key. Note for confirm dialogs, space bar is
the same as clicking the "OK/Continue" button.
Signed-off-by: a. bellenir <ab@grpl.org>
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Generic alert dialog.
The only user action allowed is the 'OK' button.
-->
-<div>
+<div ng-keypress="$event.keyCode===32 && ok()" tabindex="0" autofocus>
<div class="modal-header">
<button type="button" class="close"
ng-click="ok()" aria-hidden="true">×</button>
<!--
Generic confirmation dialog
-->
-<div>
+<div ng-keypress="$event.keyCode===32 && ok()" tabindex="0" autofocus>
<div class="modal-header">
<button type="button" class="close"
ng-click="cancel()" aria-hidden="true">×</button>