Better support for closing autocomplete without lua