property OnKeyPress: TKeyPressEvent;
Fires for each character generated by the keyboard. The Sender parameter references the TPdfView instance that raised the event, so a single handler can serve several views by inspecting Sender
Typical uses include filtering or reshaping typed characters before they reach text-selection or form-field handlers. Because the handler runs on the VCL main thread, you can update form controls and call other VCL APIs directly
Handlers should return promptly, because PDFium rendering and form filling occur on the same thread, and any delay here pushes back the next page repaint
TabStop to True if you want this control to take part in tab-key focus traversal so that keyboard events are deliveredPdfView1.OnKeyPress := MyHandlerSet Cursor / Set Caret calls on TPdfView to keep visual feedback in sync
procedure TForm1.PdfViewOnKeyPress(Sender: TObject; var Key: Char);
begin
// filter or transform typed characters before they reach text-selection or form-field handlers
Caption := Format('OnKeyPress on page %d', [PdfView1.PageNumber]);
end;