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

handling {{tab}} #2

Open
gr2m opened this issue Jan 22, 2012 · 0 comments
Open

handling {{tab}} #2

gr2m opened this issue Jan 22, 2012 · 0 comments
Assignees

Comments

@gr2m
Copy link

gr2m commented Jan 22, 2012

Thanks for the great library, I landed after quite some research here and it works pretty well, chapeau!

I've a question how you'd suggest to handle tab events. I want to test an autocomplete, when the user types a part of a result and clicks the tab button, the top result gets selected and the input triggers an action on blur.

jquery.autotype does not blur the current input, has this been a decision you made or would you consider to blur the field when a {{tab}} appears?

A workaround would be to allow for a callback as an option. I rely on the delay to make things work, so something like this would help me:

$('#meeting_project').autotype("Ba{{tab}}", {
  delay : 50, 
  done  : function(){ $(this).blur() }
})

what do you think?

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

2 participants