fat/bean — Issue #36: Ability to add additional custom events
Author: leon1638
Created: 2011-11-17 21:50:35+00:00
State: open

Can you expose the customEvents object? Goal is to provide something like mootools where you can add your own custom events with certain conditions. I would like to add my own event for enterkey pressed. I would also need to be able to access this through ender.

From MooTools Docs:
Element.Events.shiftclick = {
base: 'click', // the base event type
condition: function(event){ //a function to perform additional checks
return (event.shift == true); // this means the event is free to fire
}
};