I have an extension that has a search bar. I register a chrome command that allows the user to show/hide the search bar.
When the side panel is focused, fire the shortcut shows the search bar and the search input gains the foucs.
When the side panel is not focused, e.g. web page is focused, fire the shortcut shows the search bar, but search input does not gain the focus.
The code has the implementation like inputElement.focus(), and it works when side panel gains the focus. Just does not work if not.
Is there a workdaround for this?