Enter 按键在日期选择器中不起作用 jquery

Enter keypress does not work in datepicker jquery

用户在日期选择器中输入数据后如何使回车键起作用jquery?

 $("#datepicker").datepicker();

<input type="text" class="form-control datepicker " name="datepicker" id="datepicker" placeholder="27/04/2021"  required>

 $('#datepicker').keypress(function (e) {
                if (e.keyCode == 13) {
                   ?????????????? 
                }
 });

此代码重新打开日期选择器当字段具有焦点时:

  $("#datepicker").keypress(function( event ) {
    if ( event.which == 13 ) {
       console.log("enter key pressed");
       $("#datepicker").datepicker("show");
    }
  });