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() {

View File

@@ -47,6 +47,13 @@
<dt>+,-</dt>
<dd>${about.shortcuts.font_size}</dd>
<dt>g <i class="icon-arrow-right"></i> a</dt>
<dd>${about.shortcuts.go_to_all}</dd>
<dt>g <i class="icon-arrow-right"></i> s</dt>
<dd>${about.shortcuts.go_to_starred}</dd>
<dt>g <i class="icon-arrow-right"></i> u</dt>
<dd>${about.shortcuts.feed_search}</dd>
</dl>