angular-hotkeys icon indicating copy to clipboard operation
angular-hotkeys copied to clipboard

Mouse Click/Scroll + Key Combinations

Open devonzara opened this issue 9 years ago • 2 comments

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?

devonzara avatar Oct 26 '15 05:10 devonzara

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

theclapp avatar Oct 26 '15 14:10 theclapp

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.

devonzara avatar Oct 27 '15 01:10 devonzara