angular-hotkeys
angular-hotkeys copied to clipboard
Mouse Click/Scroll + Key Combinations
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?
That sounds kind of neat. Can you give an example?
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.