From 9fb9a4c6daf530440c5a3be0122acf8838de76cc Mon Sep 17 00:00:00 2001 From: Artem Lavrukhin Date: Fri, 22 Oct 2021 12:32:54 +0300 Subject: Mark latest post as read when clicking on right arrow shortcut Signed-off-by: Artem Lavrukhin --- CHANGELOG.md | 1 + js/gui/KeyboardShortcuts.js | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index e8e77ddbd..161abd71a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ The format is almost based on [Keep a Changelog](https://keepachangelog.com/en/1 - Updated "New Folder" and "All articles" icons to differentiate them from "Subscribe" and "All articles". ### Fixed +- Mark the latest post in a feed as read when clicking on the right arrow key. # Releases ## [16.2.0] - 2021-10-18 diff --git a/js/gui/KeyboardShortcuts.js b/js/gui/KeyboardShortcuts.js index 092968450..b6310fef5 100644 --- a/js/gui/KeyboardShortcuts.js +++ b/js/gui/KeyboardShortcuts.js @@ -288,6 +288,8 @@ var nextElement = activeElement.next(); if (nextElement.length > 0) { scrollToItem(scrollArea, nextElement, expandItemInCompact); + } else if (nextElement.length === 0) { + activeElement.find('.utils').trigger('click'); } else { // in case this is the last item it should still scroll below // the -- cgit v1.2.3