Fix regressions introduced by PR #2476

'Toast' messages are broken and v hotkey opens in the same tab

Commit d25c032171
This commit is contained in:
Frédéric Guillot 2024-03-15 20:53:46 -07:00
parent 7c80d6b86d
commit 0f17dfc7d6

View file

@ -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);