fix autocomplete popup click regression
allow using name instead of caption
do not close the popup if there are matching completions
Merge pull request #2027 from ajaxorg/autocomplete

Tweak autocomplete