philc / vimium

The hacker's browser.

Home Page:https://chrome.google.com/webstore/detail/vimium/dbepggeogbaibhgnhhndojpepiihcmeb

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Escape key should un-focus Firefox address bar

ropery opened this issue · comments

In Firefox, Alt + D or Ctrl + L gives focus to the address bar. Esc usually un-focuses it. But with Vimium installed, Esc has no such effect.

It appears the address bar is an exception where Esc doesn’t work as usual. Search by Ctrl + F can be cancelled by Esc. So can context menus, etc.

Is this a bug? Or, any workaround?

Update: This is embarrassing. It seems I misremembered / assumed the Esc in Firefox normally would un-focus the address bar. After disabling Vimium and testing that, it turned out no, that's not the case. If anything, it's a Firefox issue. Sorry for making noise.

Relatedly, may I ask: Is it possible to remap the Escape key for Vimium? E.g., use Shift-Esc or Ctrl-[ instead?

Edit: Apparently, Escape is special. It's always caught by Vimium. Is there a reason for that? Why can't we, for example, make Ctrl-[ the special thing? This way, websites (and the browser address bar) will get their Escape and Vimium will get its Vim-style escape i.e. Ctrl-[. Seems a better way to me. Why not?