]> git.gir.st - VimFx.git/commit
Improve click simulation
authorSimon Lydell <simon.lydell@gmail.com>
Mon, 7 Mar 2016 08:14:28 +0000 (09:14 +0100)
committerSimon Lydell <simon.lydell@gmail.com>
Mon, 7 Mar 2016 08:26:26 +0000 (09:26 +0100)
commit57face35d18e841b3894e3c2c258e7dabca76153
tree7de28f40d8a2d0d281ab1f43882394ecc8e79658
parent2ddd080e12fab730179acc4a471188085df9c238
Improve click simulation

- Don't leak 'command' events to web pages. They're only needed for XUL.
- Don't generate 'mousedown' and 'mouseup' when simlating clicks for browser UI
  elements. They seem to sometimes trigger some buttons' actions twice. It also
  caused background tabs to be selected before closed when clicking on their
  close button, which caused the selected tab to change. However, an exception
  had to be made for tabs. 'mousedown' seems to be the only relevant event
  there.
extension/lib/commands-frame.coffee
extension/lib/commands.coffee
extension/lib/utils.coffee
Imprint / Impressum