Stay on the same page in single view mode when using 'v' keyboard shortcut

This commit is contained in:
Frederic Guillot 2017-03-06 18:33:15 -05:00
parent dc6ec50806
commit 07f3ae0a7b
2 changed files with 5 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -188,7 +188,10 @@ Miniflux.Event = (function() {
case 118:
if (currentItem) {
Miniflux.Item.OpenOriginal(currentItem);
Miniflux.Nav.SelectNextItem();
if (document.querySelectorAll('article.item') > 1) {
Miniflux.Nav.SelectNextItem();
}
}
break;
case 'o':