fwextensions / QuicKey

Jump between recent tabs in Chrome via keyboard shortcuts or a most recently used (MRU) menu.
https://fwextensions.github.io/QuicKey
217 stars 22 forks source link

First result should be selected by default. #13

Closed garyking closed 5 years ago

garyking commented 5 years ago

When activating the results list, focus is in the search bar. The first result is not selected, though. I have to arrow-down to select it.

Not selected


Instead, the first result should be automatically selected, so I can hit Enter to jump to that tab immediately.

Selected

fwextensions commented 5 years ago

If you want to switch to the previous tab, wouldn't it be faster to use the ctrlA shortcut? You can also quickly double-press ctrlQ to switch to the previous tab. Or press ctrlQ to open the menu, then while holding ctrl down, press W to select the first item and then release ctrl. (You can keep pressing W to move the selection down the list before releasing ctrl, similar to how you can keep pressing cmdtab to move through the list of apps and then release cmd to switch.)

garyking commented 5 years ago

I try not to make it necessary to memorize too many shortcuts. So if memorizing just Ctrl-Q is really the only thing I need for this extension, I'd rather do that. Then anything else can be accomplished with the search bar and the up/down arrows and enter. I don't think UIs should really rely on the memorization of too many shortcuts.

fwextensions commented 5 years ago

ctrlQ is really all you need to remember. Press once for the menu. Double-press to switch to the previous tab (the same as what you'd get by opening the menu and selecting the first item).

One issue with selecting the first item by default is that it would break the experience for anyone using the AutoHotKey script to get ctrltab behavior similar to what Firefox offers. The current script arrows down to select the first item, so it would pick the second one if the first was already selected. I don't have a way of knowing which users are using that script, unfortunately.

garyking commented 5 years ago

Okay, I didn't know about the AHK script.

garyking commented 5 years ago

Having used the extension for a while, I still feel that the first result should be selected by default. It seems more natural that way. I know I could hit a shortcut to quickly jump to the last tab, but I don't always remember what the last tab was, so that's why I check the list to verify first.

Would be nice to have this as an option. Most websites with dropdown search results have the first result pre-selected, and only requiring you to hit Enter to jump to it.