Move default assignment on Mac.

CHANGED: add corner and repeat last command now default to 'I' instead
of '<insert>' on Mac.

1) wxWidgets doesn't currently display the correct graphic in the menu
for the insert key
2) Mac laptops don't have an instert key

Fixes https://gitlab.com/kicad/code/kicad/issues/5016
This commit is contained in:
Jeff Young 2021-03-10 13:33:35 +00:00
parent 2d609a795d
commit e48f86bfd6
2 changed files with 8 additions and 0 deletions

View File

@ -355,7 +355,11 @@ TOOL_ACTION EE_ACTIONS::finishSheet( "eeschema.InteractiveDrawing.finishSheet",
//
TOOL_ACTION EE_ACTIONS::repeatDrawItem( "eeschema.InteractiveEdit.repeatDrawItem",
AS_GLOBAL,
#ifdef __WXMAC__
'I', LEGACY_HK_NAME( "Repeat Last Item" ),
#else
WXK_INSERT, LEGACY_HK_NAME( "Repeat Last Item" ),
#endif
_( "Repeat Last Item" ), _( "Duplicates the last drawn item" ),
nullptr );

View File

@ -1112,7 +1112,11 @@ TOOL_ACTION PCB_ACTIONS::distributeVertically( "pcbnew.AlignAndDistribute.distri
//
TOOL_ACTION PCB_ACTIONS::pointEditorAddCorner( "pcbnew.PointEditor.addCorner",
AS_GLOBAL,
#ifdef __WXMAC__
'I', "",
#else
WXK_INSERT, "",
#endif
_( "Create Corner" ), _( "Create a corner" ),
add_corner_xpm );