ProjectGroups: more key shortcuts

git-svn-id: trunk@62511 -
This commit is contained in:
ondrej 2020-01-08 16:41:25 +00:00
parent 55a41430ed
commit 376bf8fdde

View File

@ -749,19 +749,39 @@ end;
procedure TProjectGroupEditorForm.TVPGKeyDown(Sender: TObject; var Key: Word;
Shift: TShiftState);
begin
if Shift=[ssCtrl] then
case Key of
VK_UP:
begin
TBTargetUp.Click;
Key := 0;
end;
VK_DOWN:
begin
TBTargetLater.Click;
Key := 0;
end;
case Key of
VK_RETURN:
begin
TVPGDblClick(Sender);
Key := 0;
end;
VK_F5:
begin
TBReload.Click;
Key := 0;
end;
VK_UP:
if Shift=[ssCtrl] then
begin
TBTargetUp.Click;
Key := 0;
end;
VK_DOWN:
if Shift=[ssCtrl] then
begin
TBTargetLater.Click;
Key := 0;
end;
Ord('S'):
begin
if Shift=[ssCtrl] then
TBSave.Click
else
if Shift=[ssCtrl, ssShift] then
PMISaveAs.Click;
Key := 0;
end;
end;
end;
procedure TProjectGroupEditorForm.TVPGMouseDown(Sender: TObject;