vimium
vimium copied to clipboard
Make `focusInput` focus all the input filelds in the whold page
Description
resolve #4046
Makes focusInput focus all the input fields in the whold page (including the fields out of view). If focused input field is out of view, the page will be auto scrolled to the aim location.
Reasons why applying this feature
- For most webpages, there is a search bar at the top of the page, which is the most used input field. However, at the time when we want to search something else, we are very likely have been at the bottom of the page, and thus present foucs input function can not be used because the search bar is at top.
- For most webpages, there are not much input fields. So focusing all input fields will not spend much time of user to switch to the aimed input field.
I have tested this feature.
https://github.com/user-attachments/assets/2ee8235e-3819-4b5d-951a-b9244c21382f
This improvement resolves the limitation where focus was only possible on text fields visible on the screen. By removing the restrictions on focusInput, it becomes a more practical and user-friendly feature. I would appreciate if this could be merged.