mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 08:19:41 +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
|
||||
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);
|
||||
|
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user