1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-11 17:51:01 +00:00

Add keyboard shortcut to scroll current item to the top

This commit is contained in:
Richard Schneider 2020-10-16 17:44:03 -05:00 committed by GitHub
parent 84b83fc3c8
commit cc8eb89ce0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 48 additions and 16 deletions

View file

@ -17,6 +17,7 @@ document.addEventListener("DOMContentLoaded", function () {
keyboardHandler.on("n", () => goToNext());
keyboardHandler.on("h", () => goToPage("previous"));
keyboardHandler.on("l", () => goToPage("next"));
keyboardHandler.on("z t", () => scrollToCurrentItem());
keyboardHandler.on("o", () => openSelectedItem());
keyboardHandler.on("v", () => openOriginalLink());
keyboardHandler.on("V", () => openOriginalLink(true));