Doubt about the OnKeyDown event in a Form

Hello,

I was trying to introduce keyboard navigation to the TMSWeb_Dataset.dpr project of the TMS Web Core demo.

I created a procedure for the event OnKeyDown and I wrote :

procedure TForm1.WebFormKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);
begin
  if WebClientConnection1.Active then
  begin
    case Key of
      VK_NEXT :
        WebClientDataSet1.Next;
      VK_DOWN :
        WebClientDataSet1.Next;
    end;
  end;
end;

In the Chrome debugger I have added a breakpoint in the line "if WebClientConnection1.Active then",  but I have seen that the debugger never stop here.

I have seen that there is not any KeyPreview as in a VCL Form.

What can I do to give keyboard navigation to the Form?.

Thank you.

There is at this time not an equivalent to the VCL TForm KeyPreview functionality.
We'll need to investigate if it can be technically feasible to add such feature as at first sight, this isn't trivial to do.