mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
mark the entry as read when using 'b' or 'v'
This commit is contained in:
@@ -933,11 +933,14 @@ function($scope, $stateParams, $http, $route, $window, EntryService, SettingsSer
|
||||
});
|
||||
Mousetrap.bind('v', function(e) {
|
||||
if ($scope.current) {
|
||||
$scope.mark($scope.current, true);
|
||||
window.open($scope.current.url);
|
||||
}
|
||||
});
|
||||
Mousetrap.bind('b', function(e) {
|
||||
if ($scope.current) {
|
||||
$scope.mark($scope.current, true);
|
||||
|
||||
var url = $scope.current.url;
|
||||
var a = document.createElement('a');
|
||||
a.href = url;
|
||||
|
||||
Reference in New Issue
Block a user