Designer: AskCompNameDlg: Ctrl+Enter applies dialog: remove added NL

git-svn-id: trunk@58268 -
This commit is contained in:
ondrej 2018-06-14 12:26:06 +00:00
parent 899367e92f
commit 265408a5af

View File

@ -204,7 +204,10 @@ procedure TAskCompNameDialog.FormKeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState); Shift: TShiftState);
begin begin
if (Key=VK_RETURN) and (ssCtrl in Shift) then if (Key=VK_RETURN) and (ssCtrl in Shift) then
begin
Key := 0;
ButtonPanel1.OKButton.Click; ButtonPanel1.OKButton.Click;
end;
end; end;
function TAskCompNameDialog.GetNewText: string; function TAskCompNameDialog.GetNewText: string;