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

Sorry for not submitting an issue first, it's just that this code is very short and so I won't be at all upset if you discard it if you don't want it (promise!)

Bare in mind that this is my first time using the Brackets API *ever* and so the code might not be totally idiomatic.