diff options
Diffstat (limited to 'www/js')
| -rw-r--r-- | www/js/EventModalCtrl.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/www/js/EventModalCtrl.js b/www/js/EventModalCtrl.js index 9e8c8a1a..4d31091e 100644 --- a/www/js/EventModalCtrl.js +++ b/www/js/EventModalCtrl.js @@ -102,7 +102,8 @@ angular.module('zmApp.controllers').controller('EventModalCtrl', ['$scope', '$ro RIGHT: 39, ESC: 27, - FITFILL_F: 70 + FITFILL_F: 70, + PLAY_SELECT:13 }; @@ -126,6 +127,14 @@ angular.module('zmApp.controllers').controller('EventModalCtrl', ['$scope', '$ro else if (keyCode == keyCodes.FITFILL_F) { $scope.scaleImage(); } + else if (keyCode == keyCodes.PLAY_SELECT) { + if ($scope.isSnapShot() && !$scope.liveFeedMid) { + $scope.convertSnapShotToStream(); + } + else { + NVRDataModel.debug ("Not in snapshot mode, ignoring"); + } + } handled = true; return handled; |
