Fixes persistence's mock, adds back the original keycode detection

This commit is contained in:
Hyzual 2015-02-08 22:39:27 +01:00
parent 5a7a06d1a2
commit 06329bef70
2 changed files with 5 additions and 4 deletions

View file

@ -175,9 +175,9 @@ angular.module('JamStash')
$(this).fadeOut(function () { $(this).remove(); });
return false;
})
// $document.keydown(function (e) {
// $scope.scrollToIndex(e);
// });
$document.keydown(function (e) {
$scope.scrollToIndex(e);
});
$scope.scrollToIndex = function (e) {
var source = e.target.id;
if (e.target.tagName.toUpperCase() != 'INPUT') {