more keyboard shortcuts

This commit is contained in:
Athou
2013-07-10 09:24:07 +02:00
parent 7504f1024f
commit 30e608ffe5
28 changed files with 222 additions and 142 deletions

View File

@@ -607,6 +607,26 @@ function($scope, $state, $filter, $timeout, CategoryService) {
$scope.close = function() {
$scope.feedSearchModal = false;
};
Mousetrap.bind('g a', function(e) {
$scope.$apply(function() {
$state.transitionTo('feeds.view', {
_type : 'category',
_id : 'all'
});
});
return false;
});
Mousetrap.bind('g s', function(e) {
$scope.$apply(function() {
$state.transitionTo('feeds.view', {
_type : 'category',
_id : 'starred'
});
});
return false;
});
Mousetrap.bind('g u', function(e) {
$scope.$apply(function() {