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 linter
messageBox messageBox
prefs prefs
rerouteHotkeys
sectionsToMozFormat sectionsToMozFormat
sessionStore sessionStore
showCodeMirrorPopup showCodeMirrorPopup
@ -505,6 +506,7 @@ function SectionsEditor() {
si.scrollY2 = si.scrollY + window.innerHeight; si.scrollY2 = si.scrollY + window.innerHeight;
container.style.height = si.scrollY2 + 'px'; container.style.height = si.scrollY2 + 'px';
scrollTo(0, si.scrollY); scrollTo(0, si.scrollY);
rerouteHotkeys(true);
} else { } else {
si = null; si = null;
} }