TImageEnVect.OnTextKeyDown
Declaration
property OnTextKeyDown: TKeyEvent;
Description
Occurs whenever a key is pressed inside a TEXT or MEMO object.
procedure TMainForm.ImageEnVect1TextKeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
begin
// Make the Enter key cancel text input
if Key = VK_Return then
begin
Key := 0;
ImageEnVect1.CancelInteracts();
end;
end;
Transition Information
If you are transitioning your code to
TImageEnView Layers, instead of OnTextKeyDown, use the event:
TImageEnView.OnTextEditorKeyDown