jstayton / jquery-marcopolo

A jQuery autocomplete plugin for the discerning developer.
http://jstayton.github.io/jquery-marcopolo
MIT License
179 stars 27 forks source link

Add support for TAB key selection #8

Closed jstayton closed 12 years ago

jstayton commented 12 years ago

[NOTE: From email correspondence.]

Justin,

Sorry to bother you and thanks for writing such a great jQuery plugin. I have a quick question if you have the time:

In order to select an item from a marcopolo drop down list i have to either:

  1. arrow down to an item in the list and press enter.
  2. mouse over and click an item in the list.

Q: How can I add a third way to select an item such that the user can arrow down to select an item and then press the TAB key to jump to the next field and select the highlighted value. At present the currently highlighted item is not stored in the field's value if you TAB away as opposed to pressing the ENTER key.

Thanks,

Brady

jstayton commented 12 years ago

Hey Brady,

So sorry for the delay in getting back to you. I'm in the midst of traveling, but I should have some time this coming week to look into your question. Thanks for your patience!

Justin

jstayton commented 12 years ago

Thanks, and enjoy your trip. I look forward to hearing from you.

-Brady

jstayton commented 12 years ago

Hey Brady,

Thanks for holding tight. I'm back from my travels now and have some time to focus on Marco Polo.

There's no easy way to do what you're asking with the currently exposed methods. But I am intrigued by your suggestion. What's your thinking behind this tab-to-select functionality? Is it a common pattern that you've seen with similar UI elements? I've been looking at regular