Focus in Navbar Panels

I've created a Shiny app with Navbar panels, and would like the focus on the first input when a tab is selected. Is that possible?

Manipulating focus seems to me like it would involve JavaScript. Perhaps shinyjs library would be useful.

Yes, I looked in shinyjs. Found the action, but not the hook.

Maybe something like onclick the tab id?