fix bug press ESC dont hide the pop up (refs #5)
dirty hack fix bug when enter is send (refs #7)