I have a custom datepicker control inside a grid . It does not close and return to the grid when user presses enter or escape.
I have the javascript code for trapping the enter key, but I need the next line of Javascript that will close the control and return to the grid.
At present, I can only close the control by clicking on another control or by clicking once inside the control, then ENTER works.
Looking for Javascript that will provide same function for keyboard as mouse.