JamieAppleseed/selectToAutocomplete — pull request #25 by dontangg (2011-12-12 05:14:48+00:00)
Title: Restricting values in the dropdown to valid values... attempt 2

I kept the change from tabs to spaces. I saw you fixed the other bug, so I didn't keep that one. The only difference between what I had before and the way it is now, is that the blur event calls the `handle_invalid_input` function. This meant that I had to pass the context into the `insert_text_field` function. In order to do that, I rearranged some things in `init`. I tested it a bunch and I feel pretty confident with it. Let me know what you think.

References #24, #16.