IDE: keymap conflict: show relation caption

git-svn-id: trunk@60253 -
This commit is contained in:
mattias 2019-01-31 10:42:32 +00:00
parent 466d4440d0
commit e2a94d370f
2 changed files with 3 additions and 2 deletions

View File

@ -59,6 +59,7 @@ var
begin
IDEShortCutX := IDEShortCut(VK_O, [ssCtrl, ssAlt], VK_UNKNOWN, []);
IDECommandCategory := IDECommandList.FindCategoryByName('Components');
IDECommand := nil;
if IDECommandCategory <> nil then
begin
IDECommand := RegisterIDECommand(IDECommandCategory, 'Online Package Manager', rsLazarusPackageManager, IDEShortCutX, nil, @IDEMenuSectionClicked);

View File

@ -519,7 +519,7 @@ function TEditorKeymappingOptionsFrame.KeyShortCutToCaption(
const aKey: TKeyCommandRelation; const aShortCut: TIDEShortCut): string;
begin
Result:=aKey.Category.Description+'/'
+EditorCommandToDescriptionString(aKey.Command)
+KeyMappingRelationToCaption(aKey)
+'->'+KeyAndShiftStateToEditorKeyString(aShortCut);
end;
@ -616,7 +616,7 @@ var
if (ShortCut1.Key1=VK_UNKNOWN)
or (ShortCut1.Key1<>ShortCut2.Key1)
or (ShortCut1.Shift1<>ShortCut2.Shift1) then
exit; // first keys differ
exit; // first key differ
if (ShortCut1.Key2=VK_UNKNOWN) or (ShortCut2.Key2=VK_UNKNOWN)
or ((ShortCut1.Key2=ShortCut2.Key2) and (ShortCut1.Shift2=ShortCut2.Shift2))