Description
Motivation
Follow up from #124 which has been closed but not fully addressed.
In order to be aligned with ARIA practices, we should make sure users can open date-picker dropdown on Enter:
https://www.w3.org/TR/wai-aria-practices-1.2/examples/dialog-modal/datepicker-dialog.html
Relevant guidance from the old Slack discussions (full text at #124 (comment)):
It's arguable that keyboard users will learn/have to learn that they can open these pickers using
alt
+down arrow
or justdown arrow
/ similar combinations. I would still suggest also opening it on Enter (the way that Firefox does), to cover most common bases.
In short, we'd recommend at the very least making sure the pickers open on
Enter
as well (and, as a result, it may need to handle this key event/prevent the form itself from submitting as a result).