Meteor-Community-Packages / meteor-autocomplete

Client/server autocompletion designed for Meteor's collections and reactivity.
https://atmospherejs.com/mizzao/autocomplete
MIT License
350 stars 109 forks source link

detect autocomplete keyup event #96

Open leizard opened 9 years ago

leizard commented 9 years ago

I have a textbox which I use 'enter' keyup event to submit the value. The problem is the autocomplete also use the 'enter' keyup event to select the suggestion. So when I select one suggestion from the list, the textbox catch the event and submit the value right away (which I dont want because I want to type more) . How can I detect only the 'enter' event of the autocomplete and prevent the textbox to catch it. Thank you.