diff options
author | 2022-01-29 16:53:10 -0500 | |
---|---|---|
committer | 2022-02-01 20:42:14 -0800 | |
commit | 824fc310a9f335fead8188cc2138ccc434ce0c7c (patch) | |
tree | c3e30ad57df88272ab098538febb1f9163df2fe0 /ui/static/js/bootstrap.js | |
parent | c891ab2588159e3d349baf2fe2768d0c44abcaeb (diff) | |
download | v2-824fc310a9f335fead8188cc2138ccc434ce0c7c.tar.gz v2-824fc310a9f335fead8188cc2138ccc434ce0c7c.tar.zst v2-824fc310a9f335fead8188cc2138ccc434ce0c7c.zip |
Add new keyboard shortcut: 'M' - toggle read/unread, go to prev item
Currently there is "Toggle read/unread = m", which toggles and
then goes to the next item.
Having the opposite operation available is handy, especially when adding
new feeds and going through them from oldest to newest posts.
It seems natural to map 'M' (= shift + 'm') for this action.
Closes https://github.com/miniflux/v2/issues/1352
Diffstat (limited to '')
-rw-r--r-- | ui/static/js/bootstrap.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/static/js/bootstrap.js b/ui/static/js/bootstrap.js index 624ef17e..6c41003d 100644 --- a/ui/static/js/bootstrap.js +++ b/ui/static/js/bootstrap.js @@ -24,6 +24,7 @@ document.addEventListener("DOMContentLoaded", function () { keyboardHandler.on("c", () => openCommentLink()); keyboardHandler.on("C", () => openCommentLink(true)); keyboardHandler.on("m", () => handleEntryStatus()); + keyboardHandler.on("M", () => handleEntryStatusNext()); keyboardHandler.on("A", () => markPageAsRead()); keyboardHandler.on("s", () => handleSaveEntry()); keyboardHandler.on("d", () => handleFetchOriginalContent()); |