Ticket #902 (reopened feature)
store evt on handler
|Reported by:||tschaub||Owned by:||tschaub|
The main purpose of the handlers is to abstract the detail of browser event handling so controls don't have to repeat the same detail in many places.
However, we shouldn't prevent controls from knowing the detail if they need it. This can be improved by storing a reference to the browser event on the handler. Because controls can reference their handlers, if they need to they can access the browser event.
This is particularly useful in determining any key modifiers associated with an event. A control should be able to modify its behavior depending on something about the browser event (altKey, shiftKey, ctrlKey, xy).
Eventually, we could store a keyDown object on the map - this would allow things like repeat pans while a key is held down. Until then, this improves the situation with handlers.