Fixes persistence's mock, adds back the original keycode detection
This commit is contained in:
parent
5a7a06d1a2
commit
06329bef70
2 changed files with 5 additions and 4 deletions
|
@ -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') {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue