1995eaton / chromium-vim

Vim bindings for Google Chrome.
https://chrome.google.com/webstore/detail/cvim/ihlenndgcmojhcghmfjfneahoeklbjjh
MIT License
2.25k stars 326 forks source link

how to stop Chrome grabbing keyboard? #683

Open russelld58 opened 5 years ago

russelld58 commented 5 years ago

hi, thanks for this nifty extension!

How to I enable cVim mode to stop Chrome from grabbing keyboard after changing tabs with "gt"?

As soon as I reach a "New Tab", Chrome grabs the kb and puts the kb input I meant for cVim into the search bar. So if I want to go back a tab as in "gT", Chrome is now searching for "gT" and brings up a page full of cars!

skaniol commented 4 years ago

There is a boolean option called "autofocus", which is true by default. It "allows websites to automatically focus an input box when they are first loaded".

Disable it by including the following in your cvimrc:
set noautofocus