Skip to content

Commit

Permalink
ZoneMinder#761 delete popup if escape pressed
Browse files Browse the repository at this point in the history
  • Loading branch information
pliablepixels committed Dec 19, 2018
1 parent ac217c1 commit 71860e6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions www/js/MonitorModalCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ angular.module('zmApp.controllers').controller('MonitorModalCtrl', ['$scope', '$

if (keyCode == keyCodes.ESC) {

if ($rootScope.zmPopup) $rootScope.zmPopup.close();
$scope.closeModal();

} else if (keyCode == keyCodes.LEFT) {
Expand Down

0 comments on commit 71860e6

Please sign in to comment.