troubleshooting Question

FMX TEdit KeyUp handler detecting "enter" key

Avatar of Roger Alcindor
Roger Alcindor asked on
4 Comments1 Solution1094 ViewsLast Modified:
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';

Join our community to see this answer!
Unlock 1 Answer and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros