From f70e1d0f221b1f92c0e1f179b1b112fb33320bc7 Mon Sep 17 00:00:00 2001 From: Mike Williams Date: Tue, 30 Aug 2022 09:14:14 -0400 Subject: [PATCH] SCH/PCB: Set Swap hotkey to 'S' * Move Add Sheet to Shift+S in Schematic Editor * Move Set Grid Origin to Shift+S in PCB Editor --- common/tool/actions.cpp | 2 +- eeschema/tools/ee_actions.cpp | 5 +++-- pcbnew/tools/pcb_actions.cpp | 3 ++- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/common/tool/actions.cpp b/common/tool/actions.cpp index d5d63d81d1..4dac49757f 100644 --- a/common/tool/actions.cpp +++ b/common/tool/actions.cpp @@ -463,7 +463,7 @@ TOOL_ACTION ACTIONS::gridPrev( "common.Control.gridPrev", TOOL_ACTION ACTIONS::gridSetOrigin( "common.Control.gridSetOrigin", AS_GLOBAL, - 'S', LEGACY_HK_NAME( "Set Grid Origin" ), + MD_SHIFT + 'S', LEGACY_HK_NAME( "Set Grid Origin" ), _( "Grid Origin" ), _( "Set the grid origin point" ), BITMAPS::grid_select_axis ); diff --git a/eeschema/tools/ee_actions.cpp b/eeschema/tools/ee_actions.cpp index 855cbada44..75860db998 100644 --- a/eeschema/tools/ee_actions.cpp +++ b/eeschema/tools/ee_actions.cpp @@ -328,7 +328,7 @@ TOOL_ACTION EE_ACTIONS::placeHierLabel( "eeschema.InteractiveDrawing.placeHierar TOOL_ACTION EE_ACTIONS::drawSheet( "eeschema.InteractiveDrawing.drawSheet", AS_GLOBAL, - 'S', LEGACY_HK_NAME( "Add Sheet" ), + MD_SHIFT + 'S', LEGACY_HK_NAME( "Add Sheet" ), _( "Add Sheet" ), _( "Add a hierarchical sheet" ), BITMAPS::add_hierarchical_subsheet, AF_ACTIVATE, (void*) SCH_SHEET_T ); @@ -420,7 +420,8 @@ TOOL_ACTION EE_ACTIONS::mirrorH( "eeschema.InteractiveEdit.mirrorH", BITMAPS::mirror_h ); TOOL_ACTION EE_ACTIONS::swap( "eeschema.InteractiveEdit.swap", - AS_GLOBAL, 0, "", + AS_GLOBAL, + 'S', "", _( "Swap" ), _( "Swaps selected items' positions" ), BITMAPS::swap_layer ); diff --git a/pcbnew/tools/pcb_actions.cpp b/pcbnew/tools/pcb_actions.cpp index c26bab176b..cf215103e8 100644 --- a/pcbnew/tools/pcb_actions.cpp +++ b/pcbnew/tools/pcb_actions.cpp @@ -326,7 +326,8 @@ TOOL_ACTION PCB_ACTIONS::mirror( "pcbnew.InteractiveEdit.mirror", BITMAPS::mirror_h ); TOOL_ACTION PCB_ACTIONS::swap( "pcbnew.InteractiveEdit.swap", - AS_GLOBAL, 0, "", + AS_GLOBAL, + 'S', "", _( "Swap" ), _( "Swaps selected items' positions" ), BITMAPS::swap_layer );