theme-default: Deprivation of focus when loading the page.
azu opened this issue · comments
azu commented
I notice that creating https://stackblitz.com/edit/honkit-template?file=README.md
It is a bit cumbersome to lose focus on the editor when changing documents.
Probably, following step got the focus.
honkit/packages/@honkit/theme-default/src/js/theme/navigation.js
Lines 375 to 379 in 3d9392b
Originally posted by @azu in #366 (comment)
azu commented
I do know why .focus()
.
If https://stackblitz.com/edit/honkit-template?file=README.md (the case of iframes), we can probably get around this by using https://developer.mozilla.org/en-US/docs/Web/API/Document/activeElement.