]> git.gir.st - VimFx.git/commit
Fix shortcut triggering on slowly loadnig pages
authorSimon Lydell <simon.lydell@gmail.com>
Sat, 17 Oct 2015 18:52:53 +0000 (20:52 +0200)
committerSimon Lydell <simon.lydell@gmail.com>
Sat, 17 Oct 2015 18:52:53 +0000 (20:52 +0200)
commit40105c27d796ae8c77056d2192cf5d20317aa0ed
tree074f2a487e8195417d6f84aeebc73d946b0a496f
parentdc0abd03dc5c0a991da533b880d4b604c27a6dfa
Fix shortcut triggering on slowly loadnig pages

Frame scripts cannot receive events until a DOMWindow has been created in it. If
you opened a link in a new tab, and the page loaded very slowly making it take a
long time before a DOMWindow is created, it meant that no VimFx shortcuts could
used during that time.

The solution is to handle shortcuts in the main process until a DOMWindow has
been created.
extension/lib/events-frame.coffee
extension/lib/vim.coffee
Imprint / Impressum