Stops prompt() Enter key event from propagating to wrong element