mirror of
https://github.com/doublecmd/doublecmd.git
synced 2026-06-21 09:58:13 +00:00
FIX: Process only VK_RETURN key
This commit is contained in:
parent
a5e9280608
commit
07e002e4b4
1 changed files with 8 additions and 5 deletions
|
|
@ -1737,12 +1737,15 @@ end;
|
|||
procedure TfrmFindDlg.FormKeyDown(Sender: TObject; var Key: Word;
|
||||
Shift: TShiftState);
|
||||
begin
|
||||
if (Sender = lsFoundedFiles) then
|
||||
TCustomListBox(Sender).OnKeyDown(Sender, Key, Shift)
|
||||
else if (Sender is TCustomButton) and (Screen.ActiveForm = Self) then
|
||||
if Key = VK_RETURN then
|
||||
begin
|
||||
TCustomButton(Sender).Click;
|
||||
Key:= 0;
|
||||
if (Sender = lsFoundedFiles) then
|
||||
TCustomListBox(Sender).OnKeyDown(Sender, Key, Shift)
|
||||
else if (Sender is TCustomButton) and (Screen.ActiveForm = Self) then
|
||||
begin
|
||||
TCustomButton(Sender).Click;
|
||||
Key:= 0;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
{$ENDIF}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue