Re: [Vimprobable-users] [patch] to escape auto focused inputs on page load
Vimprobable is a lean web browser optimised for full keyboard control
Brought to you by:
hanness
From: Matt C. <je...@gm...> - 2012-01-20 21:56:22
|
I personally hate the auto focus of input fields (even on non-vimprobable2 browsers when using Space to scroll down page) as it interrupts my navigation method (keyboard) unless I specifically want to enter the input field (by using hints or gi on vimprobable2). Would adding focus watchers be more or less resource intensive than escaping all inputs on page load? My patch could probably be tweaked so it doesn't do a full 1000 ms timeout (in local testing it seems like 500 may be plenty if not too much). On 1/20/12, Hannes Schüller <ha...@yl...> wrote: > Hut <hu...@la...> wrote: >> > Matt Carter <je...@gm...> wrote: >> > > Patch for hinting.js file, not sure if anyone else will find it >> > > useful but it escapes auto-focused input fields (such as on >> > > google.com) which mess up the current vimprobable2 mode detection >> > > (focused input without being in insert mode). >> > >> > This is an interesting one. I think there are two options, out of >> > which this is one. The other way would be to actually go to INSERT >> > mode automatically if a form element is focused (which would mean >> > re-introducing focus watchers in some limited way). >> > >> > Everyone - which behaviour is preferable? >> >> I still don't get why we need an INSERT mode at all. I would prefer >> that all keys are passed to the input field if and only if the cursor >> in that field is visible/blinking. > > So this is a vote for option 2. > > Hannes > |