Fixed the bug that dialog was destory when user use alt+space trigger delete-event.