jquery.autotype icon indicating copy to clipboard operation
jquery.autotype copied to clipboard

handling {{tab}}

Open gr2m opened this issue 13 years ago • 0 comments

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?

gr2m avatar Jan 22 '12 12:01 gr2m