forked from Archives/Athou_commafeed
more keyboard shortcuts
This commit is contained in:
@@ -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() {
|
||||
|
||||
@@ -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>
|
||||
Reference in New Issue
Block a user