call rerouteHotkeys when restoring scrollInfo

...because we intentionally don't focus any CM in this case as it's bugged as hell
This commit is contained in:
tophf 2020-11-22 00:12:32 +03:00
parent 32cca90ddd
commit b4ca17c531

View File

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