Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 3 of 3 total
Thread KeyPress problem in Firefox
Mon, Oct 16 2017 5:47 AMPermanent Link

Paul Coshott


Hi All,

I have the code below linked to some edits that are used for search criteria. It just allows the user to press Enter to initiate the search. In the EWB internal browser and in Edge, internet explorer and Chrome, it works as expected. But in Firefox, nothing happens. Do I need to do something else to get Firefox to work, or is this just a problem with Firefox?

Thanks for any advice,

function TfClientMaint.eSurnameKeyPress(Sender: TObject; Key: Char; ShiftKey, CtrlKey, AltKey: Boolean): Boolean;
 if Key = #13 then begin
 Result := True;
Mon, Oct 16 2017 6:59 AMPermanent Link

Walter Matte

Tactical Business Corporation

Tue, Oct 17 2017 4:59 AMPermanent Link

Paul Coshott


Hi Walter,

<< KyePress -> Use KeyDown >>

Thanks for the info. I changed to the KeyDown event and now it's working in all browsers.