Skip to content

Commit 4735559

Browse files
committed
bk/2024-08-30-1717
1 parent c3d1df6 commit 4735559

File tree

2 files changed

+4
-16
lines changed

2 files changed

+4
-16
lines changed

Src/KeyboardBinding/DelphiAIDev.KeyboardBinding.pas

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ TDelphiAIDevKeyboardBinding = class(TNotifierObject, IOTAKeyboardBinding)
2020
private
2121
procedure KeyAltHome(const Context: IOTAKeyContext; KeyCode: TShortcut; var BindingResult: TKeyBindingResult);
2222
procedure KeyTab(const Context: IOTAKeyContext; KeyCode: TShortcut; var BindingResult: TKeyBindingResult);
23-
//procedure KeyProcBlockReturn(const Context: IOTAKeyContext; KeyCode: TShortcut; var BindingResult: TKeyBindingResult);
2423
procedure CodeCompletionSearch(const Context: IOTAKeyContext; KeyCode: TShortcut; var BindingResult: TKeyBindingResult);
2524
protected
2625
function GetBindingType: TBindingType;
@@ -88,10 +87,9 @@ procedure TDelphiAIDevKeyboardBinding.BindKeyboard(const BindingServices: IOTAKe
8887
var
8988
LShortcut: string;
9089
begin
91-
// if TUtilsOTA.CurrentProjectIsDelphiAIDeveloperDPROJ then
92-
// Exit;
90+
//if TUtilsOTA.CurrentProjectIsDelphiAIDeveloperDPROJ then
91+
// Exit;
9392

94-
//BindingServices.AddKeyBinding([Shortcut(VK_RETURN, [ssAlt])], Self.KeyProcBlockReturnAndAlt, nil);
9593
LShortcut := TConsts.CODE_COMPLETION_SHORTCUT_INVOKE;
9694
if not(Trim(TDelphiAIDevSettings.GetInstance.CodeCompletionShortcutInvoke).IsEmpty) then
9795
LShortcut := TDelphiAIDevSettings.GetInstance.CodeCompletionShortcutInvoke;
@@ -130,9 +128,6 @@ procedure TDelphiAIDevKeyboardBinding.KeyAltHome(const Context: IOTAKeyContext;
130128
var
131129
LTextCurrentLineOrBlock: string;
132130
begin
133-
if KeyCode <> Shortcut(VK_RETURN, [ssAlt]) then
134-
Exit;
135-
136131
LTextCurrentLineOrBlock := GetCurrentLineOrBlock(CnOtaGetTopMostEditView).Trim;
137132
if LTextCurrentLineOrBlock.Trim.IsEmpty then
138133
Exit;

Src/Test/DelphiAIDev.Test.Client.pas

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,18 @@ TDelphiAIDevTestClient = class
1111
FNumero: Integer;
1212
FTelefone: string;
1313
FEmail: string;
14-
FDataNascimento: TDateTime;
14+
FSalario: Double;
1515
public
1616
property Nome: string read FNome write FNome;
1717
property Endereco: string read FEndereco write FEndereco;
1818
property Bairro: string read FBairro write FBairro;
1919
property Numero: Integer read FNumero write FNumero;
2020
property Telefone: string read FTelefone write FTelefone;
2121
property Email: string read FEmail write FEmail;
22-
property DataNascimento: TDateTime read FDataNascimento write FDataNascimento;
23-
24-
procedure Clear;
22+
property Salario: Double read FSalario write FSalario;
2523
end;
2624

2725
implementation
2826

29-
procedure TDelphiAIDevTestClient.Clear;
30-
begin
31-
//Suggestion
32-
33-
end;
3427

3528
end.

0 commit comments

Comments
 (0)