kasper / phoenix

A lightweight macOS window and app manager scriptable with JavaScript
https://kasper.github.io/phoenix/
Other
4.38k stars 127 forks source link

Include modifiers in mouse click events #216

Closed DanielGibbsNZ closed 5 years ago

DanielGibbsNZ commented 6 years ago

I would like to be able to bind some functionality to mouse clicks with modifiers (e.g. Ctrl+Alt+Click). Would it be possible to add modifiers to the Events received for mouse click events?

I believe that you can get the modifiers from NSEvent's modifierFlags in https://github.com/kasper/phoenix/blob/4cb7bacde88b3ea6a5e77c851fe3a2de7d723faa/Phoenix/PHGlobalEventMonitor.m#L93

DanielGibbsNZ commented 6 years ago

I've implemented this in #217.