rails/jquery-ujs — Issue #228: Original Event?
Author: danott
Created: 2011-12-06 22:54:22+00:00
State: open

In some scenarios, it would be nice to have access to the original jQuery Event that triggered the the remote functionality.

In my inspection of the events passed as arguments for `ajax:*`, I could find no reference to an originating event.

My idea for this support comes from the jQuery doc regarding [event.originalEvent](http://api.jquery.com/category/events/event-object/).

**Usage idea**: Changing the functionality of the remote by recognizing a modifier key with `ajax:beforeSend`. `shift+click` could change parameters that modify the result returned by the remote.