swallow enter event in rename dialog

avoids adding newline in cell after dialog is closed.

closes #3926