pmalecka / shortkeys

A Firefox extension for custom keyboard shortcuts
https://addons.mozilla.org/en-US/firefox/addon/shortkeys
MIT License
11 stars 4 forks source link

Add the ability to simulate mouse click #13

Open naoric opened 7 years ago

naoric commented 7 years ago

Thanks for the great work you are doing! 90% of the time I find myself mapping a shortcut to something like this:

document.querySelector('SOMETHING')
  .dispatchEvent(new MouseEvent('click', { bubbles: true, ...}))

If there's a way to just map a shortcut to a css selector it would be awesome.