I find that when I open sidebarAction window, I must click in it to get focus. Is there a way to focus the window when opens? I have tried window.focus() in the onload event, to no avail.
Related to that, is there a way to focus the sidebar when the mouse cursor is over it? I can detect mouseover event when the cursor enters the sidebar, and when doing so I can even “click” some of the elements using element.click() and they will trigger click listeners on elements inside the sidebar window, however, keydown event listeners on the sidebar window do not activate until I physically click with a mouse. Again, I have tried window.focus() in this scenario as well, to no avail.
Thanks…