diff --git a/pcbnew/hotkeys.cpp b/pcbnew/hotkeys.cpp index e4239518bf..9ba0b415eb 100644 --- a/pcbnew/hotkeys.cpp +++ b/pcbnew/hotkeys.cpp @@ -237,6 +237,10 @@ static EDA_HOTKEY HkIncLayerAlhpa( _HKI( "Increment Layer Transparency" ), HK_IN static EDA_HOTKEY HkDecLayerAlhpa( _HKI( "Decrement Layer Transparency" ), HK_DEC_LAYER_ALHPA, '{' ); +static EDA_HOTKEY HkSelectConnection( _HKI( "Select Trivial Connection" ), HK_SEL_TRIVIAL_CONNECTION, 'U' ); + +static EDA_HOTKEY HkSelectCopper( _HKI( "Select Copper Connection" ), HK_SEL_COPPER_CONNECTION, 'I' ); + // List of common hotkey descriptors EDA_HOTKEY* common_Hotkey_List[] = { @@ -289,6 +293,7 @@ EDA_HOTKEY* board_edit_Hotkey_List[] = &HkSwitchHighContrastMode, &HkCanvasDefault, &HkCanvasCairo, &HkCanvasOpenGL, &HkZoneFillOrRefill, &HkZoneRemoveFilled, + &HkSelectConnection, &HkSelectCopper, NULL }; diff --git a/pcbnew/hotkeys.h b/pcbnew/hotkeys.h index 36b91e944c..6ddd6c7645 100644 --- a/pcbnew/hotkeys.h +++ b/pcbnew/hotkeys.h @@ -103,7 +103,9 @@ enum hotkey_id_commnand { HK_ZONE_FILL_OR_REFILL, HK_ZONE_REMOVE_FILLED, HK_INC_LAYER_ALHPA, - HK_DEC_LAYER_ALHPA + HK_DEC_LAYER_ALHPA, + HK_SEL_TRIVIAL_CONNECTION, + HK_SEL_COPPER_CONNECTION }; // Full list of hotkey descriptors for board editor and footprint editor diff --git a/pcbnew/tools/pcb_editor_control.cpp b/pcbnew/tools/pcb_editor_control.cpp index 163cca5c50..02df6c8865 100644 --- a/pcbnew/tools/pcb_editor_control.cpp +++ b/pcbnew/tools/pcb_editor_control.cpp @@ -126,7 +126,7 @@ TOOL_ACTION PCB_ACTIONS::crossProbeSchToPcb( "pcbnew.EditorControl.crossProbSchT "", "" ); TOOL_ACTION PCB_ACTIONS::toggleLock( "pcbnew.EditorControl.toggleLock", - AS_GLOBAL, 'L', + AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_LOCK_UNLOCK_FOOTPRINT ), "Toggle Lock", "" ); TOOL_ACTION PCB_ACTIONS::lock( "pcbnew.EditorControl.lock", diff --git a/pcbnew/tools/selection_tool.cpp b/pcbnew/tools/selection_tool.cpp index f054246701..f024b8ead1 100644 --- a/pcbnew/tools/selection_tool.cpp +++ b/pcbnew/tools/selection_tool.cpp @@ -87,11 +87,11 @@ TOOL_ACTION PCB_ACTIONS::selectionClear( "pcbnew.InteractiveSelection.Clear", "", "" ); // No description, it is not supposed to be shown anywhere TOOL_ACTION PCB_ACTIONS::selectConnection( "pcbnew.InteractiveSelection.SelectConnection", - AS_GLOBAL, 'U', + AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_SEL_TRIVIAL_CONNECTION ), _( "Trivial Connection" ), _( "Selects a connection between two junctions." ) ); TOOL_ACTION PCB_ACTIONS::selectCopper( "pcbnew.InteractiveSelection.SelectCopper", - AS_GLOBAL, 'I', + AS_GLOBAL, TOOL_ACTION::LegacyHotKey( HK_SEL_COPPER_CONNECTION ), _( "Copper Connection" ), _( "Selects whole copper connection." ) ); TOOL_ACTION PCB_ACTIONS::selectNet( "pcbnew.InteractiveSelection.SelectNet",