diff options
author | 2024-03-19 19:30:38 -0700 | |
---|---|---|
committer | 2024-03-19 19:30:38 -0700 | |
commit | 1ea3953271209cf7a26d549f0c41c64506976bab (patch) | |
tree | 013ad06ceaea8cfb8d8116bf95c8c2244e8e1bd1 /internal/ui/static/js/bootstrap.js | |
parent | fe8b7a907e00a98f5fe54cfbab92f0016c358325 (diff) | |
download | v2-1ea3953271209cf7a26d549f0c41c64506976bab.tar.gz v2-1ea3953271209cf7a26d549f0c41c64506976bab.tar.zst v2-1ea3953271209cf7a26d549f0c41c64506976bab.zip |
Add keyboard shortcuts for scrolling to top/bottom of the item list
Diffstat (limited to 'internal/ui/static/js/bootstrap.js')
-rw-r--r-- | internal/ui/static/js/bootstrap.js | 2 |
1 files changed, 2 insertions, 0 deletions
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); |