forked from Archives/Athou_commafeed
show shortcuts on '?' keypress (#52)
This commit is contained in:
@@ -431,22 +431,23 @@ module.controller('FeedListCtrl', function($scope, $stateParams, $http, $route,
|
||||
}
|
||||
};
|
||||
|
||||
Mousetrap.bind('space', function(e) {
|
||||
$scope.$apply(function() {
|
||||
openNextEntry(e);
|
||||
});
|
||||
});
|
||||
|
||||
Mousetrap.bind('j', function(e) {
|
||||
$scope.$apply(function() {
|
||||
openNextEntry(e);
|
||||
});
|
||||
});
|
||||
Mousetrap.bind('shift+space', function(e) {
|
||||
Mousetrap.bind('k', function(e) {
|
||||
$scope.$apply(function() {
|
||||
openPreviousEntry(e);
|
||||
});
|
||||
});
|
||||
Mousetrap.bind('k', function(e) {
|
||||
Mousetrap.bind('space', function(e) {
|
||||
$scope.$apply(function() {
|
||||
openNextEntry(e);
|
||||
});
|
||||
});
|
||||
Mousetrap.bind('shift+space', function(e) {
|
||||
$scope.$apply(function() {
|
||||
openPreviousEntry(e);
|
||||
});
|
||||
@@ -475,6 +476,11 @@ module.controller('FeedListCtrl', function($scope, $stateParams, $http, $route,
|
||||
window.open($scope.current.url);
|
||||
}
|
||||
});
|
||||
Mousetrap.bind('?', function(e) {
|
||||
$scope.$apply(function() {
|
||||
$scope.shortcutsModal = true;
|
||||
});
|
||||
});
|
||||
|
||||
$scope.$on('markAll', function(event, args) {
|
||||
var service = $scope.selectedType == 'feed' ? FeedService
|
||||
|
||||
Reference in New Issue
Block a user