akhodakivskiy / VimFx

Vim keyboard shortcuts for Firefox
https://addons.mozilla.org/firefox/addon/vimfx
Other
1.42k stars 174 forks source link

Strange behavior with google search input field #1005

Open uniresuto opened 4 months ago

uniresuto commented 4 months ago

When focusing google search input field with 'gi', often times it focuses and selects all the text (when normally it should place cursor at the end) or doesn't focus at all. Also, when I press escape while in the input field while search suggestions active, it removes focus and goes to normal mode but the search suggestions field stays visible.

Here's a GIF. You can see it selecting all the text and suggestions field staying visible. recording

Unfortunately, I couldn't replicate the most problematic behavior when it doesn't focus at all.

uniresuto commented 4 months ago

I was able to replicate not-focusing after all recording 2

girst commented 3 months ago

regarding suggestions staying visible: google search probably adds an event listener for , which they use to trigger closing of suggestions. the problem is that vimfx swallows the keyboard event for its own use. i don't think we can easily fix that.