From 1ea3953271209cf7a26d549f0c41c64506976bab Mon Sep 17 00:00:00 2001 From: Matt Behrens Date: Tue, 19 Mar 2024 19:30:38 -0700 Subject: Add keyboard shortcuts for scrolling to top/bottom of the item list --- internal/ui/static/js/bootstrap.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'internal/ui/static/js/bootstrap.js') diff --git a/internal/ui/static/js/bootstrap.js b/internal/ui/static/js/bootstrap.js index 0a9c2b78..b1aa4536 100644 --- a/internal/ui/static/js/bootstrap.js +++ b/internal/ui/static/js/bootstrap.js @@ -9,6 +9,8 @@ document.addEventListener("DOMContentLoaded", () => { keyboardHandler.on("g f", goToFeedOrFeeds); keyboardHandler.on("g c", () => goToPage("categories")); keyboardHandler.on("g s", () => goToPage("settings")); + keyboardHandler.on("g g", () => goToPrevious(TOP)); + keyboardHandler.on("G", () => goToNext(BOTTOM)); keyboardHandler.on("ArrowLeft", goToPrevious); keyboardHandler.on("ArrowRight", goToNext); keyboardHandler.on("k", goToPrevious); -- cgit v1.2.3