Adds event handling for double-click in autocomplete pop-up.  Reverts the
order of elements in the pop-up so that the type comes before the name.