fix autocomplete

What got fixed :

1. On Mac, when pressing enter on the input, the autocomplete list would
not be hidden.

2. On Mac, without Requestor, I would encounter the same problem that
the request didn't get send out anytime and I hav to hide and re-focus
the window to make it work every time.