Hide mentions autocomplete when clicking outside of it.
Fixed pressing up/down key not changing textfield cursor when autocomplete is hidden.