I have a form with a datepicker inside. I would like to be able to trigger my search-function on keydown.enter. The problem is that the datepicker loses focus after selecting a date. If I try to refocus the datepicker, the calendar-popup won't close. Has anyone found a workaround for this?