mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
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) {
|
Mousetrap.bind('?', function(e) {
|
||||||
$scope.$apply(function() {
|
$scope.$apply(function() {
|
||||||
$scope.shortcutsModal = true;
|
$scope.shortcutsModal = true;
|
||||||
|
|||||||
@@ -13,6 +13,9 @@
|
|||||||
|
|
||||||
<dt>s</dt>
|
<dt>s</dt>
|
||||||
<dd>star/unstar current entry</dd>
|
<dd>star/unstar current entry</dd>
|
||||||
|
|
||||||
|
<dt>m</dt>
|
||||||
|
<dd>mark as read/unread current entry</dd>
|
||||||
|
|
||||||
<dt>mouse middleclick</dt>
|
<dt>mouse middleclick</dt>
|
||||||
<dd>open entry in new tab and mark as read</dd>
|
<dd>open entry in new tab and mark as read</dd>
|
||||||
|
|||||||
Reference in New Issue
Block a user