fix #2925 Ensure that closeOnEnter can preventDefault

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