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

Suggestion: allow to register listener on multiple elements at the same time #89

Closed
mallocator opened this issue Apr 5, 2015 · 1 comment

Comments

@mallocator
Copy link

Extend the API to support arrays when setting up keylisteners:

Old style:

new window.keypress.Listener(document.getElementByID('editor'));
// or with JQuery
new window.keypress.Listener($('#editor)[0]);

New Style (doesn't really change):

new window.keypress.Listener(document.getElementByClass('editable'));

This would even make JQuery integration more idiot proof (which I could have used ;-) ):

new window.keypress.Listener($('#editor));
@dmauro
Copy link
Owner

dmauro commented Aug 16, 2015

1b7da62

@dmauro dmauro closed this as completed Aug 16, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants