[dialog addon] Ensure that enter presses can be preventDefault-ed

When closeOnEnter is disabled the enter event never gets default
prevented this causes issues for IE9/10, this way implementors can
optionally preventDefault if they want