aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Inverle <inverle@proton.me> 2025-12-09 17:05:05 +0100
committerGravatar GitHub <noreply@github.com> 2025-12-09 17:05:05 +0100
commite85d8053511b12de9296b6acd3e963b3a6e82242 (patch)
tree1d29737d60009d81f76ac93a1bd2d1a7fde0f12a
parentbb9089aa990a8e1dd228d47aa5b11b3500cdface (diff)
Keep scroll state of page when closing the slider with JS shortcut (#8301)
Follow-up of https://github.com/FreshRSS/FreshRSS/pull/8295
-rw-r--r--p/scripts/main.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/p/scripts/main.js b/p/scripts/main.js
index 50dc31bb9..b3724ca76 100644
--- a/p/scripts/main.js
+++ b/p/scripts/main.js
@@ -1255,7 +1255,7 @@ function init_shortcuts() {
if (k === s.close_menus && (
(hash === 'slider' && close_slider_listener()) ||
hash.startsWith('dropdown')
- )) { location.hash = ''; ev.preventDefault(); return; }
+ )) { location.hash = 'close'; ev.preventDefault(); return; }
if (k === s.help) { window.open(context.urls.help); ev.preventDefault(); return; }
if (k === s.focus_search) { document.getElementById('search').focus(); ev.preventDefault(); return; }
if (k === s.normal_view) { delayedClick(document.querySelector('#nav_menu_views .view-normal')); ev.preventDefault(); return; }