Issue #381 clickable autocomplete

Made autocomplete to work with mouse.
I know the issue was created just a few hours ago. And was not yet approved by p-e-w. But I decided to implement it anyway. 
Unnecessary blank lines (there should be only one on top and none on bottom).