Autocomplete: Search if the user retypes the same value

Fixes #7434