fix accept keyboard input to close dlg edit