bean icon indicating copy to clipboard operation
bean copied to clipboard

Ability to add additional custom events

Open stenou opened this issue 13 years ago • 2 comments

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
    }
};

stenou avatar Nov 17 '11 21:11 stenou

interesting. i don't see why it couldn't be exposed.

ded avatar Nov 23 '11 01:11 ded

adding code to existing issues seems difficult, so i ended up creating a new issue. see #41 for my proposed solution to this

eleith avatar Nov 28 '11 19:11 eleith