fanglingsu / vimb

Vimb - the vim like browser is a webkit based web browser that behaves like the vimperator plugin for the firefox and usage paradigms from the great editor vim. The goal of vimb is to build a completely keyboard-driven, efficient and pleasurable browsing-experience.
https://fanglingsu.github.io/vimb/
GNU General Public License v3.0
1.35k stars 100 forks source link

input mode when quitting inputbox #630

Open Rhylx opened 4 years ago

Rhylx commented 4 years ago

Hi,
I don't understand why vimb is going to input mode when quitting inputbox. I would like to be in normal mode.

Steps to reproduce

When pressing o in normal mode and entering a URI and then pressing the page is loading but I'm in insert mode and I don't know how to change this behaviour.

Thanks in advance for your help,
Rhylx

fanglingsu commented 4 years ago

@Rhylx If you open a new url and vimb is in insert mode it means the page set the cursor via JavaScript into an input or textarea field. If you open a page without JS and forms like https://fanglingsu.github.io/vimb/ you should end up in normal mode.

Rhylx commented 4 years ago

Oh, I see. But for example if I'm searching for something with searx, I get in insert mode, but you're right it isn't the case with Google for example. So I could maybe try to look at how searx works

Rhylx commented 4 years ago

But actually I tried it in qutebrowser and it doesn't directly go to insert mode. It stays in normal mode. Couldn't it be the same here in vimb?

fanglingsu commented 4 years ago

In the past there was an option in vimb to disable going into insert mode without interaction. I assume that there is something similar in qutebrowser too, that pervents pages from disturbing the user by forcing focus on form fields. As I can remember, I didn't git it working in an acceptable way and different use-cases:

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had activity within the last 60 days.