8000 Suggestion: allow to register listener on multiple elements at the same time · Issue #89 · dmauro/Keypress · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

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 &ldq 8000 uo;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

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
0