GitbookIO/javascript

Get the focus when loading a chapter so up/down keys work

ibc opened this issue · 0 comments

ibc commented

When pressing right key or "->" symbol and a new chapter is loaded, pressing up/down keys do not work (this is, you cannot scroll up/down the chapter text with the keyboard). For it to work I need to click with the mouse on the chapter so it gets the focus.

I suggest manually firing the "focus" event on the chapter container after loaded.