mirror of
https://github.com/miniflux/v2.git
synced 2025-08-01 17:38:37 +00:00
Add '+' shortcut for new subscription page
This commit is contained in:
parent
4831acba39
commit
1e357d3ced
3 changed files with 8 additions and 0 deletions
|
@ -612,3 +612,8 @@ function showToast(label, iconElement) {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
/** Navigate to the new subscription page. */
|
||||
function goToAddSubscription() {
|
||||
window.location.href = document.body.dataset.addSubscriptionUrl;
|
||||
}
|
||||
|
|
1
ui/static/js/bootstrap.js
vendored
1
ui/static/js/bootstrap.js
vendored
|
@ -32,6 +32,7 @@ document.addEventListener("DOMContentLoaded", function () {
|
|||
keyboardHandler.on("F", () => goToFeed());
|
||||
keyboardHandler.on("R", () => handleRefreshAllFeeds());
|
||||
keyboardHandler.on("?", () => showKeyboardShortcuts());
|
||||
keyboardHandler.on("+", () => goToAddSubscription());
|
||||
keyboardHandler.on("#", () => unsubscribeFromFeed());
|
||||
keyboardHandler.on("/", (e) => setFocusToSearchInput(e));
|
||||
keyboardHandler.on("Escape", () => ModalHandler.close());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue