Autocompletion: fix mouse click handler
Autocompletion: fix mouse click handler

Adding the "autocomplete reset" feature somehow broke mouse click events.
Work around that by taking the reset feature out of onblur and catch it
directly when clicking outside the drop-down menu or by pressing Escape.

lcorbasson/rer-web,lcorbasson/rer-web,lcorbasson/rer-web,lcorbasson/rer-web