1
- unit DelphiAIDev.IDE.Shortcuts ;
1
+ unit DelphiAIDev.KeyboardBinding ;
2
2
3
3
interface
4
4
@@ -12,7 +12,7 @@ interface
12
12
DelphiAIDev.Chat.View ;
13
13
14
14
type
15
- TDelphiAIDevIDEShortcuts = class (TNotifierObject, IOTAKeyboardBinding)
15
+ TDelphiAIDevKeyboardBinding = class (TNotifierObject, IOTAKeyboardBinding)
16
16
private
17
17
// procedure KeyProcBlockReturn(const Context: IOTAKeyContext; KeyCode: TShortcut; var BindingResult: TKeyBindingResult);
18
18
procedure KeyProcBlockReturnAndAlt (const Context: IOTAKeyContext; KeyCode: TShortcut; var BindingResult: TKeyBindingResult);
@@ -39,7 +39,7 @@ implementation
39
39
procedure RegisterSelf ;
40
40
begin
41
41
if Index < 0 then
42
- Index := TUtilsOTA.GetIOTAKeyboardServices.AddKeyboardBinding(TDelphiAIDevIDEShortcuts .New);
42
+ Index := TUtilsOTA.GetIOTAKeyboardServices.AddKeyboardBinding(TDelphiAIDevKeyboardBinding .New);
43
43
end ;
44
44
45
45
procedure UnRegisterSelf ;
@@ -57,27 +57,27 @@ procedure RefreshRegister;
57
57
RegisterSelf;
58
58
end ;
59
59
60
- class function TDelphiAIDevIDEShortcuts .New : IOTAKeyboardBinding;
60
+ class function TDelphiAIDevKeyboardBinding .New : IOTAKeyboardBinding;
61
61
begin
62
62
Result := Self.Create;
63
63
end ;
64
64
65
- function TDelphiAIDevIDEShortcuts .GetBindingType : TBindingType;
65
+ function TDelphiAIDevKeyboardBinding .GetBindingType : TBindingType;
66
66
begin
67
67
Result := btPartial;
68
68
end ;
69
69
70
- function TDelphiAIDevIDEShortcuts .GetDisplayName : string;
70
+ function TDelphiAIDevKeyboardBinding .GetDisplayName : string;
71
71
begin
72
72
Result := Self.ClassName;
73
73
end ;
74
74
75
- function TDelphiAIDevIDEShortcuts .GetName : string;
75
+ function TDelphiAIDevKeyboardBinding .GetName : string;
76
76
begin
77
77
Result := Self.ClassName;
78
78
end ;
79
79
80
- procedure TDelphiAIDevIDEShortcuts .BindKeyboard (const BindingServices: IOTAKeyBindingServices);
80
+ procedure TDelphiAIDevKeyboardBinding .BindKeyboard (const BindingServices: IOTAKeyBindingServices);
81
81
begin
82
82
// if TUtilsOTA.CurrentProjectIsDelphiAIDeveloperDPROJ then
83
83
// Exit;
@@ -86,7 +86,7 @@ procedure TDelphiAIDevIDEShortcuts.BindKeyboard(const BindingServices: IOTAKeyBi
86
86
BindingServices.AddKeyBinding([Shortcut(VK_RETURN, [ssAlt])], Self.KeyProcBlockReturnAndAlt, nil );
87
87
end ;
88
88
89
- // procedure TDelphiAIDevIDEShortcuts .KeyProcBlockReturn(const Context: IOTAKeyContext; KeyCode: TShortcut; var BindingResult: TKeyBindingResult);
89
+ // procedure TDelphiAIDevKeyboardBinding .KeyProcBlockReturn(const Context: IOTAKeyContext; KeyCode: TShortcut; var BindingResult: TKeyBindingResult);
90
90
// begin
91
91
// if KeyCode <> Shortcut(VK_RETURN, []) then
92
92
// Exit;
@@ -95,7 +95,7 @@ procedure TDelphiAIDevIDEShortcuts.BindKeyboard(const BindingServices: IOTAKeyBi
95
95
// BindingResult := TKeyBindingResult.krNextProc; //krUnhandled;
96
96
// end;
97
97
98
- procedure TDelphiAIDevIDEShortcuts .KeyProcBlockReturnAndAlt (const Context: IOTAKeyContext; KeyCode: TShortcut; var BindingResult: TKeyBindingResult);
98
+ procedure TDelphiAIDevKeyboardBinding .KeyProcBlockReturnAndAlt (const Context: IOTAKeyContext; KeyCode: TShortcut; var BindingResult: TKeyBindingResult);
99
99
var
100
100
LTextCurrentLineOrBlock: string;
101
101
begin
0 commit comments