Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Looks great! I love instant search weekend projects! One thing i learn is also to disable keystrokes that do not change the search query; and you might want to do the same too. Perhaps do not execute the search, if keys like 'ctrl', 'alt', 'commamnd', etc is hit.


The easy way to do this is to use the changing of the value of the search field to trigger searches instead of caring about keystrokes at all.

Of course you probably don't want to send every single change either but thats beyond the scope of this comment. :)


That's true :) While for that, you give a delay for say ~.5 seconds once your hand is off the keyboard, then read the value in the form.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: