darylrowland / angucomplete

AngularJS Autocomplete Directive
510 stars 281 forks source link

Only search when new term is entered #7

Closed stevenharman closed 10 years ago

stevenharman commented 10 years ago

Not all key presses change the search string (arrow keys to move the cursor, or CMD + A to select the text, for example), so we shouldn't queue up a new search unless the actual search term has changed.