Browse Source

Keep scroll state of page when closing the slider with JS shortcut (#8301)

Follow-up of https://github.com/FreshRSS/FreshRSS/pull/8295
Inverle 4 months ago
parent
commit
e85d805351
1 changed files with 1 additions and 1 deletions
  1. 1 1
      p/scripts/main.js

+ 1 - 1
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; }