Press Ctrl+Shift+1 (customizable) when on a webpage with a text box to focus the text box closest to the center of the screen.
Why: Many webpages require typing as the first thing you do. This includes entering your username to login or typing text to perform a search. Sometimes the webpage won't focus the main text box for the user, which means the user needs to click it with the mouse, which is an extra step. Sometimes your hands are already on the keyboard ready to type and moving your hand back to the mouse to click and then move your hand back to the keyboard is simply too much work. How: With the extension, simply press Ctrl+Shift+1 to put the text cursor into the main input field on the webpage. As simple as that. Features: This extension is different than simply pressing Tab to move the focus to the webpage's form controls. This extension has the following unique features: - Only text boxes are focused, buttons and links are ignored. - If multiple text boxes are present, the text box closest to the center of the screen is focused. This allows you to focus the login box instead of the search box. - Only text boxes at the current scroll position are focused. This prevents focusing text boxes at the very top or very bottom of the page. - If there is a password text box and a normal text box near each other, the password text box has less priority. - If the webpage has a text box with the "autofocus" attribute, it is selected first. Customization: To customize the keyboard shortcut, click on the hamburger menu -> More tools -> Extensions -> click the left hamburger menu -> Keyboard shortcuts
- (2021-07-03) 清: 感谢作者的优质扩展，但提一个参考建议：可否考虑下第一次按下快捷键时，默认聚焦当前滚动位置处第一个文本框，重复按下则在所有当前滚动位置处的文本框之间循环聚焦？ 其实我说的这种方式几乎就是浏览器扩展“Vimium C”的聚焦方式，但Vimium C……1.功能快捷键太多了，与我的其它程序冲突；2.聚焦的特效太随意且有问题，不如就像本扩展程序这样不加特效，更清爽、舒服。 给作者大人一万个赞！
- (2021-02-11) XX Yang: 提高很多效率了，谢谢作者
- (2020-07-05) Lan Sy: 非常实用，想要这个功能很久了