forked from Archives/Athou_commafeed
keyboard shortcut to mark as read/unread
This commit is contained in:
@@ -664,6 +664,13 @@ function($scope, $stateParams, $http, $route, $window, EntryService, SettingsSer
|
||||
}
|
||||
});
|
||||
});
|
||||
Mousetrap.bind('m', function(e) {
|
||||
$scope.$apply(function() {
|
||||
if ($scope.current) {
|
||||
$scope.mark($scope.current, !$scope.current.read);
|
||||
}
|
||||
});
|
||||
});
|
||||
Mousetrap.bind('?', function(e) {
|
||||
$scope.$apply(function() {
|
||||
$scope.shortcutsModal = true;
|
||||
|
||||
@@ -13,6 +13,9 @@
|
||||
|
||||
<dt>s</dt>
|
||||
<dd>star/unstar current entry</dd>
|
||||
|
||||
<dt>m</dt>
|
||||
<dd>mark as read/unread current entry</dd>
|
||||
|
||||
<dt>mouse middleclick</dt>
|
||||
<dd>open entry in new tab and mark as read</dd>
|
||||
|
||||
Reference in New Issue
Block a user