mmonteleone/jquery.autotype — Issue #2: handling {{tab}}
Author: gr2m
Created: 2012-01-22 12:05:05+00:00
State: open

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:

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

what do you think?