]> git.gir.st - VimFx.git/commit
Fix `zF` double clicking on browser elements (#757)
authorAlan Wu <XrXr@users.noreply.github.com>
Sun, 12 Jun 2016 08:27:17 +0000 (04:27 -0400)
committerSimon Lydell <simon.lydell@gmail.com>
Sun, 12 Jun 2016 08:27:17 +0000 (10:27 +0200)
commita6c579b2b1dfbce8938439be3a0ab3e64cac3226
tree9138733d1db4396a963ed53fdd66d0e6402ee104
parentd9bf94e9e6ad7348f7fb1430b2a0cd32b04cf2e7
Fix `zF` double clicking on browser elements (#757)

`nsIDOMWindowUtils.dispatchDOMEventViaPresShell()` dispatches
a 'command' event automatically after a 'click' event on XUL pages.
This was causing `zF` to effectively double click on browser elements,
since VimFx also simulates a 'command' event.

Elements which suffers from this double click include but are not
limited to, the new tab button, question mark circles in the preferences
page and buttons created by the add-on sdk.
extension/lib/utils.coffee
Imprint / Impressum