caleb531/jcanvas — pull request #56 by surenm (2012-12-18 17:37:11+00:00)
Title: Native jquery event data is needed in event handler methods

Currently the layer information is passed to the event handler methods. It does not have the native jquery event data though. So information like if option key was pressed, shift key was pressed etc are missing which limits the ways the event handlers could be used.

This patch is a bad way to expose the jquery event via the layer itself to the event handlers.

I suppose the right way is to pass the standard jquery event as the argument for the event handler with event.data pointing to the layer information. I tried to implement that but got lost a bit.