forked from Archives/Athou_commafeed
support for n and p in addition to j and k
This commit is contained in:
@@ -649,11 +649,21 @@ function($scope, $stateParams, $http, $route, $window, EntryService, SettingsSer
|
|||||||
openNextEntry(e);
|
openNextEntry(e);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Mousetrap.bind('n', function(e) {
|
||||||
|
$scope.$apply(function() {
|
||||||
|
openNextEntry(e);
|
||||||
|
});
|
||||||
|
});
|
||||||
Mousetrap.bind('k', function(e) {
|
Mousetrap.bind('k', function(e) {
|
||||||
$scope.$apply(function() {
|
$scope.$apply(function() {
|
||||||
openPreviousEntry(e);
|
openPreviousEntry(e);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
Mousetrap.bind('p', function(e) {
|
||||||
|
$scope.$apply(function() {
|
||||||
|
openPreviousEntry(e);
|
||||||
|
});
|
||||||
|
});
|
||||||
Mousetrap.bind('o', function(e) {
|
Mousetrap.bind('o', function(e) {
|
||||||
$scope.$apply(function() {
|
$scope.$apply(function() {
|
||||||
if ($scope.current) {
|
if ($scope.current) {
|
||||||
|
|||||||
Reference in New Issue
Block a user