swallow enter event in rename dialog

avoids adding newline in cell after dialog is closed.

closes #3926
Merge pull request #3929 from minrk/rename-cr

swallow enter event in rename dialog

avoids adding newline in cell after dialog is closed.

closes #3926