prevent Enter key on popup, put a link when no text is selected, restore the original List function