Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to add additional custom events #36

Open
stenou opened this issue Nov 17, 2011 · 2 comments
Open

Ability to add additional custom events #36

stenou opened this issue Nov 17, 2011 · 2 comments

Comments

@stenou
Copy link

stenou commented Nov 17, 2011

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
    }
};
@ded
Copy link
Collaborator

ded commented Nov 23, 2011

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

@eleith
Copy link

eleith commented Nov 28, 2011

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants