support for n and p in addition to j and k

This commit is contained in:
Athou
2013-05-15 23:03:02 +02:00
parent 0d48dc220d
commit 65d753fdeb

View File

@@ -649,11 +649,21 @@ function($scope, $stateParams, $http, $route, $window, EntryService, SettingsSer
openNextEntry(e);
});
});
Mousetrap.bind('n', function(e) {
$scope.$apply(function() {
openNextEntry(e);
});
});
Mousetrap.bind('k', function(e) {
$scope.$apply(function() {
openPreviousEntry(e);
});
});
Mousetrap.bind('p', function(e) {
$scope.$apply(function() {
openPreviousEntry(e);
});
});
Mousetrap.bind('o', function(e) {
$scope.$apply(function() {
if ($scope.current) {