diff options
author | 2024-03-15 20:53:46 -0700 | |
---|---|---|
committer | 2024-03-15 20:55:32 -0700 | |
commit | 0f17dfc7d6f99e063855d052b4ef61c0269ed08e (patch) | |
tree | 2395dd716f39fec9c93f73d82d5bb374b4b59291 | |
parent | 7c80d6b86d0b415943e84000115be3f83c98d7d5 (diff) | |
download | v2-0f17dfc7d6f99e063855d052b4ef61c0269ed08e.tar.gz v2-0f17dfc7d6f99e063855d052b4ef61c0269ed08e.tar.zst v2-0f17dfc7d6f99e063855d052b4ef61c0269ed08e.zip |
Fix regressions introduced by PR #2476
'Toast' messages are broken and v hotkey opens in the same tab
Commit d25c032171e47799da40a155bd172308fbfb036f
-rw-r--r-- | internal/ui/static/js/bootstrap.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/ui/static/js/bootstrap.js b/internal/ui/static/js/bootstrap.js index 1b820eb5..0acef71c 100644 --- a/internal/ui/static/js/bootstrap.js +++ b/internal/ui/static/js/bootstrap.js @@ -20,16 +20,16 @@ document.addEventListener("DOMContentLoaded", () => { keyboardHandler.on("z t", scrollToCurrentItem); keyboardHandler.on("o", openSelectedItem); keyboardHandler.on("Enter", () => openSelectedItem()); - keyboardHandler.on("v", openOriginalLink); + keyboardHandler.on("v", () => openOriginalLink(false)); keyboardHandler.on("V", () => openOriginalLink(true)); - keyboardHandler.on("c", openCommentLink); + keyboardHandler.on("c", () => openCommentLink(false)); keyboardHandler.on("C", () => openCommentLink(true)); keyboardHandler.on("m", () => handleEntryStatus("next")); keyboardHandler.on("M", () => handleEntryStatus("previous")); keyboardHandler.on("A", markPageAsRead); - keyboardHandler.on("s", handleSaveEntry); + keyboardHandler.on("s", () => handleSaveEntry()); keyboardHandler.on("d", handleFetchOriginalContent); - keyboardHandler.on("f", handleBookmark); + keyboardHandler.on("f", () => handleBookmark()); keyboardHandler.on("F", goToFeed); keyboardHandler.on("R", handleRefreshAllFeeds); keyboardHandler.on("?", showKeyboardShortcuts); |