mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 20:59:06 +02:00
IDE: keymap conflict: show relation caption
git-svn-id: trunk@60253 -
This commit is contained in:
parent
466d4440d0
commit
e2a94d370f
@ -59,6 +59,7 @@ var
|
|||||||
begin
|
begin
|
||||||
IDEShortCutX := IDEShortCut(VK_O, [ssCtrl, ssAlt], VK_UNKNOWN, []);
|
IDEShortCutX := IDEShortCut(VK_O, [ssCtrl, ssAlt], VK_UNKNOWN, []);
|
||||||
IDECommandCategory := IDECommandList.FindCategoryByName('Components');
|
IDECommandCategory := IDECommandList.FindCategoryByName('Components');
|
||||||
|
IDECommand := nil;
|
||||||
if IDECommandCategory <> nil then
|
if IDECommandCategory <> nil then
|
||||||
begin
|
begin
|
||||||
IDECommand := RegisterIDECommand(IDECommandCategory, 'Online Package Manager', rsLazarusPackageManager, IDEShortCutX, nil, @IDEMenuSectionClicked);
|
IDECommand := RegisterIDECommand(IDECommandCategory, 'Online Package Manager', rsLazarusPackageManager, IDEShortCutX, nil, @IDEMenuSectionClicked);
|
||||||
|
@ -519,7 +519,7 @@ function TEditorKeymappingOptionsFrame.KeyShortCutToCaption(
|
|||||||
const aKey: TKeyCommandRelation; const aShortCut: TIDEShortCut): string;
|
const aKey: TKeyCommandRelation; const aShortCut: TIDEShortCut): string;
|
||||||
begin
|
begin
|
||||||
Result:=aKey.Category.Description+'/'
|
Result:=aKey.Category.Description+'/'
|
||||||
+EditorCommandToDescriptionString(aKey.Command)
|
+KeyMappingRelationToCaption(aKey)
|
||||||
+'->'+KeyAndShiftStateToEditorKeyString(aShortCut);
|
+'->'+KeyAndShiftStateToEditorKeyString(aShortCut);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -616,7 +616,7 @@ var
|
|||||||
if (ShortCut1.Key1=VK_UNKNOWN)
|
if (ShortCut1.Key1=VK_UNKNOWN)
|
||||||
or (ShortCut1.Key1<>ShortCut2.Key1)
|
or (ShortCut1.Key1<>ShortCut2.Key1)
|
||||||
or (ShortCut1.Shift1<>ShortCut2.Shift1) then
|
or (ShortCut1.Shift1<>ShortCut2.Shift1) then
|
||||||
exit; // first keys differ
|
exit; // first key differ
|
||||||
|
|
||||||
if (ShortCut1.Key2=VK_UNKNOWN) or (ShortCut2.Key2=VK_UNKNOWN)
|
if (ShortCut1.Key2=VK_UNKNOWN) or (ShortCut2.Key2=VK_UNKNOWN)
|
||||||
or ((ShortCut1.Key2=ShortCut2.Key2) and (ShortCut1.Shift2=ShortCut2.Shift2))
|
or ((ShortCut1.Key2=ShortCut2.Key2) and (ShortCut1.Shift2=ShortCut2.Shift2))
|
||||||
|
Loading…
Reference in New Issue
Block a user