From b4ca17c531baf1b1bc26ca9a4e6d35916c59d3c5 Mon Sep 17 00:00:00 2001 From: tophf Date: Sun, 22 Nov 2020 00:12:32 +0300 Subject: [PATCH] call rerouteHotkeys when restoring scrollInfo ...because we intentionally don't focus any CM in this case as it's bugged as hell --- edit/sections-editor.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/edit/sections-editor.js b/edit/sections-editor.js index 1c9a649f..0bda2466 100644 --- a/edit/sections-editor.js +++ b/edit/sections-editor.js @@ -14,6 +14,7 @@ linter messageBox prefs + rerouteHotkeys sectionsToMozFormat sessionStore showCodeMirrorPopup @@ -505,6 +506,7 @@ function SectionsEditor() { si.scrollY2 = si.scrollY + window.innerHeight; container.style.height = si.scrollY2 + 'px'; scrollTo(0, si.scrollY); + rerouteHotkeys(true); } else { si = null; }