Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Request: Keyboard command to focus search bar #1240

Open
CubeOfCheese opened this issue Apr 25, 2022 · 1 comment
Open

Feature Request: Keyboard command to focus search bar #1240

CubeOfCheese opened this issue Apr 25, 2022 · 1 comment

Comments

@CubeOfCheese
Copy link

I like the new look of the tab page with the search bar front and center. But when I open a new tab, the browser's url bar is already focused. In order to use tab for a cause's search bar I have to click on it first. I'd be much more likely to use it if I could use a keyboard shortcut to focus it. A common one is command + K.
If you point me in the right direction I could try my hand at implementing and opening a PR.
Cheers

@kmjennison
Copy link
Contributor

Thanks for the issue! I like this suggestion, but I'm not sure it's possible on the new tab page, because the browser's URL bar has keyboard focus. From Chrome extension docs: "Don't rely on the page having the keyboard focus. The address bar always gets the focus first when the user creates a new tab."

I haven't tested this out, though. You could give it a try with a local extension pointing to a local app. For keyboard logic, a package like Mousetrap would help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants