cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

about extensions sidebar_actions' focus behavior

mmm951
Making moves

i want to develop a simple extension improve experience using vertical tab as well as tabGroups

the builtin-sidebar like sidebar-history will be focused instantly after click the entry button, and the contentBox(input?) will be focused

focus.gif

however, the extension's sidebar doesn't like the builtin one. I have to click the sidebar area, then it's focused

mmm951_0-1761660686943.gif

simple js:

const groupnameInput = document.getElementById("groupname-input") as HTMLInputElement;
const colorOptions = document.querySelectorAll(".color-option");
const optionsArray = Array.from(colorOptions);

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

mmm951
Making moves

or is there any to simplify the workflow?

1. focused on a tab (or a tab is active) in certain group initially

2. create a new group with a new tab, and config-menu of the new group is opening. the new tab is focused(or active)

currently the above steps is kind of inhuman. i should

1. create a tab out of the active tab's group(without certain extension, i must create a new tab in the group and drag it on the root container)

2. right click the new tab, and assign it to a new group

3. new group config-menu is showing

mmm951
Making moves

and does sidebar's icon support dark/light like "browser_action.theme_icons"?

mmm951_0-1761668269829.png