Rename dialog now will now close when the user presses enter.