XengShi / materialYouNewTab

A Simple New Tab ( browsers's home page ) inspired with Google's 'Material You' design
https://xengshi.github.io/materialYouNewTab/
GNU General Public License v3.0
1.42k stars 131 forks source link

Add ability to select items from search autocomplete via keyboard #183

Open ceskyDJ opened 1 week ago

ceskyDJ commented 1 week ago

Now, when I want to select some autocomplete item, I need to click on it with a mouse. I want to have an option to stay on my keyboard, so the whole process is:

  1. Search input is focused on the page load (e.g., element.focus()).
  2. When I type something, autocomplete reveals.
  3. I can use the Bottom and Top arrow keys to select a completed search query.
  4. I press the Enter key, and it starts searching the selected query via the selected search engine (e.g., Google).
itz-rj-here commented 1 week ago

Doesn’t it work? I thought it might work bruh.

ceskyDJ commented 6 days ago

Huh, it works for you? I should be on the latest commit of main, and it doesn't work. The input isn't autofocus, and I can't select an item from autocomplete via the Top and Bottom arrow keys on my keyboard.

prem-k-r commented 6 days ago

Doesn’t it work? I thought it might work bruh.

nope

itz-rj-here commented 6 days ago

Doesn’t it work? I thought it might work bruh.

nope

Didn't noticed it cause i usually don't use it as all shortcuts are included on the new tab extention :)

itz-rj-here commented 6 days ago

@Minuga-RC

Minuga-RC commented 5 days ago

Ik I could easily do all of those but I'm toooooooo lazy af

itz-rj-here commented 5 days ago

Ik I could easily do all of those but I'm toooooooo lazy af

Get some protein. -_-

Minuga-RC commented 5 days ago

I need those ADHD drugs

itz-rj-here commented 5 days ago

I need those ADHD drugs

0.0