1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-08-26 18:21:02 +00:00

add mark as read and next to keyboard shortcuts

This commit is contained in:
Thomas Citharel 2015-07-27 22:01:19 +02:00
parent 6056aaf076
commit 2098509cb2

View file

@ -63,6 +63,9 @@ function actionArticle(id) {
case 77: case 77:
markReadArticle(id); // m key letter markReadArticle(id); // m key letter
break; break;
case 78:
markReadAndNextArticle(id); // n letter
break;
} }
}, false); }, false);
@ -86,6 +89,12 @@ function markReadArticle(id) {
} }
} }
function markReadAndNextArticle(id) {
if (id) {
window.location = window.location.origin + window.location.pathname + '?action=archive_and_next&id=' + id;
}
}
function homeNavigation() { function homeNavigation() {
selectedArticle = $('.entrie:first'); selectedArticle = $('.entrie:first');
window.addEventListener("keydown", function (event) { window.addEventListener("keydown", function (event) {