bean
bean copied to clipboard
Ability to add additional custom events
Can I access the customEvents object while using bean with ender? 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.
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
}
};
interesting. i don't see why it couldn't be exposed.
adding code to existing issues seems difficult, so i ended up creating a new issue. see #41 for my proposed solution to this