fix autocomplete with autofocus on when pressing enter or tab. fixes #158