keyboard shortcut to mark as read/unread

This commit is contained in:
Athou
2013-05-06 20:42:39 +02:00
parent 4a73bff3ee
commit 2100e114f4
2 changed files with 10 additions and 0 deletions

View File

@@ -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;

View File

@@ -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>