I am using a TReplaceDialog and the following to catch key to launch the dialog, but Windows 8.1 keeps going "Ding" when I use it. How can I stop that chime? I have tried messing with the Form KeyPreview but still get that chime. Same for using the ShortCut (Ctrl-R) with the Popup menu Item "pupuFindReplaceText"
Also, I get the chime when I use the Tab to move from the "Find text" edit to the "Replace text" Edit within the dialog. Or, is this just a feature of 8.1?
if Shift = [ssCtrl] then
begin
if Char(Key) in ['F','f','R','r'] then
puFindReplaceTextClick(Sender);
Key:=0;
end else
begin
end;
Instead of using
OnKeyDown
, useOnKeyPress
: