I wish to perform some action (simulation of clicking a button foe example) when the enter key (carriage return) is pressed and released in an FMX Edit control. The following code using the TEdit KeyUp event doesn't seem to work, what should I be doing ?
I am using the Embarcadero C++ builder XE 10.1 Berlin compiler.
void __fastcall TForm1::Edit1KeyUp(TObject *Sender, WORD &Key, System::WideChar &KeyChar, TShiftState Shift){ WideChar w = '\r'; if(KeyChar==w) Button1Click(NULL);}