Fixed a minor bug

...where the date picker would close on any key press, not just for the
ESC key; thanks to nacho for reporting;