Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

Commit

Permalink
fix(modal): give a reason of rejection when escape key pressed
Browse files Browse the repository at this point in the history
Fixes #1956
Closes #1991
  • Loading branch information
tkrotoff authored and bekos committed Apr 12, 2014
1 parent 004dd1d commit cb31b87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modal/modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ angular.module('ui.bootstrap.modal', ['ui.bootstrap.transition'])
modal = openedWindows.top();
if (modal && modal.value.keyboard) {
$rootScope.$apply(function () {
$modalStack.dismiss(modal.key);
$modalStack.dismiss(modal.key, 'escape key press');
});
}
}
Expand Down

0 comments on commit cb31b87

Please sign in to comment.