diff --git a/src/main/webapp/js/controllers.js b/src/main/webapp/js/controllers.js index c5ec10fc..d551364b 100644 --- a/src/main/webapp/js/controllers.js +++ b/src/main/webapp/js/controllers.js @@ -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; diff --git a/src/main/webapp/templates/_shortcuts.html b/src/main/webapp/templates/_shortcuts.html index 519b013d..25ec4306 100644 --- a/src/main/webapp/templates/_shortcuts.html +++ b/src/main/webapp/templates/_shortcuts.html @@ -13,6 +13,9 @@
s
star/unstar current entry
+ +
m
+
mark as read/unread current entry
mouse middleclick
open entry in new tab and mark as read