jonrohan/ZeroClipboard — pull request #27 by jonrohan (2012-12-15 06:06:06+00:00)
Title: When dispatching MouseEvents to JS, should include pertinent Event details

When ZeroClipboard dispatches `MouseEvent`s to JavaScript, it is only sending an argument of `null` rather than including any useful information. I'd love to see it pass along any pertinent Event details instead (e.g. `ctrlKey`, etc.), though we may need to rely on the JS dispatcher to "correct" some of the properties, e.g. pass the Client's `id` for the event `target` but have the dispatcher change that into a DOM element.

**ActionScript MouseEvent details for events we currently dispatch:**
- [MOUSE_DOWN](http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/events/MouseEvent.html#MOUSE_DOWN)
- [MOUSE_UP](http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/events/MouseEvent.html#MOUSE_UP)
- [MOUSE_OVER](http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/events/MouseEvent.html#MOUSE_OVER)
- [MOUSE_OUT](http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/events/MouseEvent.html#MOUSE_OUT)

**JavaScript MouseEvent details:**
- Modern browsers: [MouseEvent](https://developer.mozilla.org/en-US/docs/DOM/MouseEvent)
- Also inherits properties from [Event](https://developer.mozilla.org/en-US/docs/DOM/event)
- IIRC, old IE (6-8) has a different event but I can't find the docs on it at the moment