mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-14 21:59:18 +02:00
ProjectInspector: Add shortcuts for VK_RETURN, VK_DELETE and VK_INSERT, like package editor has.
git-svn-id: trunk@43638 -
This commit is contained in:
parent
3fb2dd4469
commit
7d8d504dd4
@ -225,11 +225,24 @@ end;
|
|||||||
|
|
||||||
procedure TProjectInspectorForm.ItemsTreeViewKeyDown(Sender: TObject;
|
procedure TProjectInspectorForm.ItemsTreeViewKeyDown(Sender: TObject;
|
||||||
var Key: Word; Shift: TShiftState);
|
var Key: Word; Shift: TShiftState);
|
||||||
|
var
|
||||||
|
Handled: Boolean;
|
||||||
begin
|
begin
|
||||||
if Key = 27 then
|
Handled := True;
|
||||||
begin
|
try
|
||||||
Key:=0;
|
if Key = VK_ESCAPE then
|
||||||
Close;
|
Close
|
||||||
|
else if Key = VK_RETURN then
|
||||||
|
OpenButtonClick(Nil)
|
||||||
|
else if Key = VK_DELETE then
|
||||||
|
RemoveBitBtnClick(Nil)
|
||||||
|
else if Key = VK_INSERT then
|
||||||
|
AddBitBtnClick(Nil)
|
||||||
|
else
|
||||||
|
Handled := False;
|
||||||
|
finally
|
||||||
|
if Handled then
|
||||||
|
Key := VK_UNKNOWN;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user