mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-19 05:28:17 +02:00
* Better shortcut key for non-mac
git-svn-id: trunk@59137 -
This commit is contained in:
parent
aa1ef56a38
commit
51cb1f0b2d
@ -29,12 +29,21 @@ begin
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
Procedure Register;
|
Procedure Register;
|
||||||
|
|
||||||
|
Const
|
||||||
|
{$IFDEF DARWIN}
|
||||||
|
ShiftKeys = [ssMeta,ssShift];
|
||||||
|
{$ELSE}
|
||||||
|
ShiftKeys = [ssAlt,ssShift];
|
||||||
|
{$ENDIF}
|
||||||
|
|
||||||
|
|
||||||
var
|
var
|
||||||
IDEShortCutX: TIDEShortCut;
|
IDEShortCutX: TIDEShortCut;
|
||||||
IDECommandCategory: TIDECommandCategory;
|
IDECommandCategory: TIDECommandCategory;
|
||||||
IDECommand: TIDECommand;
|
IDECommand: TIDECommand;
|
||||||
begin
|
begin
|
||||||
IDEShortCutX := IDEShortCut(VK_P, [ssMeta,ssShift], VK_UNKNOWN, []);
|
IDEShortCutX := IDEShortCut(VK_P, ShiftKeys, VK_UNKNOWN, []);
|
||||||
IDECommandCategory := IDECommandList.FindCategoryByName(CommandCategoryViewName);
|
IDECommandCategory := IDECommandList.FindCategoryByName(CommandCategoryViewName);
|
||||||
if IDECommandCategory <> nil then
|
if IDECommandCategory <> nil then
|
||||||
begin
|
begin
|
||||||
|
Loading…
Reference in New Issue
Block a user