chieffancypants / angular-hotkeys

Configuration-centric keyboard shortcuts for your Angular apps.
http://chieffancypants.github.io/angular-hotkeys/
MIT License
1.68k stars 248 forks source link

Mouse Click/Scroll + Key Combinations #188

Closed devonzara closed 1 year ago

devonzara commented 8 years ago

I'm working on an application where key combinations along with mouse click/scroll events are used as hotkeys, is there a way to define these type of combinations in angular-hotkeys?

theclapp commented 8 years ago

That sounds kind of neat. Can you give an example?

devonzara commented 8 years ago

Sure, the use-case I'm working on is a drawing application where scrolling the mouse wheel could be configured to zoom and pressing Ctrl while scrolling could might adjust the brush size.

However, since making this post, I realize now that this is a limitation of the Mousetrap library. I guess adding mouse events to that would be the first step in gaining support for them here.

Now that I think about it though, implementing that would then raise issues on rather or not support for PointerEvents should be implemented too since it's already supported by IE and is being worked on by Firefox and Chrome as well.