From 65d753fdebd926ca5dad97d43174fd331d851186 Mon Sep 17 00:00:00 2001 From: Athou Date: Wed, 15 May 2013 23:03:02 +0200 Subject: [PATCH] support for n and p in addition to j and k --- src/main/webapp/js/controllers.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/webapp/js/controllers.js b/src/main/webapp/js/controllers.js index e55adfa3..144b4255 100644 --- a/src/main/webapp/js/controllers.js +++ b/src/main/webapp/js/controllers.js @@ -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) {