diff --git a/static/index.html b/static/index.html index cee49e7..37751f0 100644 --- a/static/index.html +++ b/static/index.html @@ -17,7 +17,7 @@ - +
diff --git a/static/js/app.js b/static/js/app.js index b6090c4..a74d7f5 100644 --- a/static/js/app.js +++ b/static/js/app.js @@ -98,8 +98,9 @@ '$location', '$q', '$window', + '$document', 'ScribeAPI', - function ($rootScope, $location, $q, $window, ScribeAPI) { + function ($rootScope, $location, $q, $window, $document, ScribeAPI) { /** * getAllLogsFiles @@ -222,11 +223,12 @@ } }; - $rootScope.onKeyDown = function ($event) { + $document.bind('keydown', function ($event) { if ($event.keyCode == 27) { - $rootScope.sidebar = false + $rootScope.sidebar = false; + $rootScope.$digest() } - } + }); } ]);