Skip to content

Commit 9b20b25

Browse files
committed
bk/2024-08-31-0139
1 parent 4735559 commit 9b20b25

File tree

5 files changed

+11
-4
lines changed

5 files changed

+11
-4
lines changed

Src/Consts/DelphiAIDev.Consts.pas

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ TConsts = class
1616
GITHUB_Code4Delphi = 'https://github.com/Code4Delphi';
1717
GITHUB_PROJECT = 'https://github.com/Code4Delphi/Delphi-AI-Developer';
1818
APPLICATION_JSON = 'application/json';
19+
SHORTCUT_CHAT_DEFAULT = 'Ctrl+Shift+Alt+A';
1920
CODE_COMPLETION_SUGGESTION_COLOR = $777777;
2021
CODE_COMPLETION_SHORTCUT_INVOKE = 'Alt+Enter';
2122

Src/KeyboardBinding/DelphiAIDev.KeyboardBinding.pas

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,8 @@ procedure TDelphiAIDevKeyboardBinding.CodeCompletionSearch(const Context: IOTAKe
106106
if TDelphiAIDevSettings.GetInstance.CodeCompletionUse then
107107
TDelphiAIDevCodeCompletionSearch.New.Process(Context);
108108
finally
109-
BindingResult := TKeyBindingResult.krUnhandled;
109+
//BindingResult := TKeyBindingResult.krUnhandled;
110+
BindingResult := TKeyBindingResult.krHandled;
110111
end;
111112
end;
112113

Src/MainMenu/DelphiAIDev.MainMenu.pas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ function TDelphiAIDevIDEMainMenu.CreateSubMenu(AName: string; ACaption: string;
145145

146146
function TDelphiAIDevIDEMainMenu.GetShortCutStrChat: string;
147147
begin
148-
Result := 'Ctrl+Shift+Alt+A';
148+
Result := TConsts.SHORTCUT_CHAT_DEFAULT;
149149
end;
150150

151151
initialization

Src/Test/DelphiAIDev.Test.Client.pas

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,15 @@ TDelphiAIDevTestClient = class
2020
property Telefone: string read FTelefone write FTelefone;
2121
property Email: string read FEmail write FEmail;
2222
property Salario: Double read FSalario write FSalario;
23+
24+
procedure Clear;
2325
end;
2426

2527
implementation
2628

29+
procedure TDelphiAIDevTestClient.Clear;
30+
begin
31+
32+
end;
2733

2834
end.

Src/Test/DelphiAIDev.Test.pas

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ TDelphiAIDevTest = class
2323
property Email: string read FEmail write FEmail;
2424
property DataNascimento: TDateTime read FDataNascimento write FDataNascimento;
2525
property Apelido: string read FApelido write FApelido;
26-
property Cep: Integer read FCep write FCep;
26+
2727

2828
procedure Clear;
2929
end;
@@ -32,7 +32,6 @@ implementation
3232

3333
procedure TDelphiAIDevTest.Clear;
3434
begin
35-
3635
end;
3736

3837
end.

0 commit comments

Comments
 (0)