Avatar of Roger Alcindor
Roger Alcindor

asked on 

FMX TEdit KeyUp handler detecting "enter" key

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';


Open in new window


Avatar of undefined
Last Comment
Roger Alcindor

8/22/2022 - Mon