Hacker News new | ask | show | jobs
by sunchild 5267 days ago
After rolling my own solution for tokenized autocomplete a few times, I love the idea. I found a few nits, though.

1. I assumed that autocomplete would catch the word "autocomplete" after I deleted the token. It took me a while to find a word that was in the autocomplete collection. Might be a good idea to choose default tokens that are in the demo collection.

2. I found the dropdown triangle to the right confusing. What is it supposed to do?

3. Arrow keys don't work properly on text before it is committed to a token. The insertion point keeps getting bumped to the end of the word. Likewise for clicking in the middle of a word before it is tokenized.

4. Finally, I think as many people expect the tab key to tokenize the current word as those who expect the enter/return key to do that. Having the tab key jump focus out of the input is probably desirable in some use cases, but not as a default.