Foucs behavior issue on sidebar when opening

as MDN suggests, I build a simple extension improve my experience by sidebar. by the way, it’s really convenient to use vscode extensions and web-ext cli to develop.

the problem is when I toggle the builtin sidebar like history-sidebar, the input is focus automatically.

focus

however, on my extensions the sidebar can’t be focused.

nofocus

and i notice that the setting-sidebar doesn’t swtich focus on it, i’m confused if it’s a normal behavior?

then, i try to manage the focus on myself such as using “autofocus” attr on tag and javascript below:

window.onload = () => window.focus()
window.addEventListener("focus", () => {
  groupnameInput.focus()
})

all of them don’t work. is there any way to handle the focus manually?

Sadly, it’s not yet possible, but it’s a planned feature:

See also: