[BUGFIX] ENTER key breaks jQuery-UI dialogs

Change-Id: Ieaa539a1a747ee51cd4d5c9e366648cfb247d2fa
Fixes: #57711
Reviewed-on: https://review.typo3.org/29235
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers