tabliss icon indicating copy to clipboard operation
tabliss copied to clipboard

Focus on tabliss search bar when opening a new tab

Open roman-16 opened this issue 5 years ago • 5 comments

When opening a new tab in Firefox the address bar is focused and not the tabliss search bar. I don't think this should be the case.

roman-16 avatar Jun 11 '19 06:06 roman-16

And as another tabliss user, I'd say that I would hate having something other than browser address bar focused on the new page. All in all, it's where my default search lives, with all the hints and search settings, which I don't ever want to have to set up again.

kadmil avatar Jun 18 '19 11:06 kadmil

I think this should be setable. So you can activate it if you need it

roman-16 avatar Jun 18 '19 12:06 roman-16

This is a default Firefox behavior. Even for their default start page with a search bar lol... I researched this problem for a few hours and couldn't find the working solution, except the following.

Maybe we could insert document.getElementsByClassName("Search")[0].focus(); in index.html? It works from the console, but I'm not experienced enough, nor have time, sadly, to fire up my own fork of this repo. Would be cool if someone with proper skills tested it.

As a workaround, for now, you can set extension's url as your homepage, and use Alt+Home instead of Ctrl+t to open Tabliss with a focus on a search bar.

UPD: or we can even possibly use document.focus();, because one may not have search widget, but wants to use shortcuts, which won't work in current scenario, too.

st-den avatar Apr 15 '20 22:04 st-den

I support the idea of having auto-focus on the Tabliss search bar (or at least setable). After all, the entire point of having a search bar in a new tab is because you want to avoid clicking somewhere after opening the new tab (I could just click on google otherwise).

gennaro-tedesco avatar Apr 24 '20 21:04 gennaro-tedesco

TLDR: Also quite like this, nothing I tried worked :)

I want to use Firefox in full-screen mode and use tabliss search instead of Firefox when opening a new tab; If the focus isn't on the address bar, it works as intended.

Since Custom JS doesn't seem to be available in the local installation (#90 ), what I tried was using the web version of Tabliss with the code snippet above; That does work as intended on full screen, but I haven't been able to set that as a default new tab; Extensions such as Custom New Tab Page seems to keep the focus on the address bar anyway :/

BrunoGomesCoelho avatar Aug 27 '20 13:08 BrunoGomesCoelho