pcbnew: Minor fixes to 'Find Item' dialog (GAL canvas).
This commit is contained in:
parent
7c9418f667
commit
788a25438a
|
@ -695,6 +695,8 @@ void PCB_EDIT_FRAME::UseGalCanvas( bool aEnable )
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
m_toolManager->ResetTools( TOOL_BASE::GAL_SWITCH );
|
||||||
|
|
||||||
// Redirect all events to the legacy canvas
|
// Redirect all events to the legacy canvas
|
||||||
GetGalCanvas()->SetEventDispatcher( NULL );
|
GetGalCanvas()->SetEventDispatcher( NULL );
|
||||||
}
|
}
|
||||||
|
|
|
@ -41,9 +41,12 @@ TOOL_ACTION COMMON_ACTIONS::selectionClear( "pcbnew.InteractiveSelection.Clear",
|
||||||
"", "" ); // No description, it is not supposed to be shown anywhere
|
"", "" ); // No description, it is not supposed to be shown anywhere
|
||||||
|
|
||||||
TOOL_ACTION COMMON_ACTIONS::find( "pcbnew.InteractiveSelection.Find",
|
TOOL_ACTION COMMON_ACTIONS::find( "pcbnew.InteractiveSelection.Find",
|
||||||
AS_GLOBAL, 0,
|
AS_GLOBAL, 0, // it is handled by wxWidgets hotkey system
|
||||||
"Find an item", "Searches the document for an item" );
|
"Find an item", "Searches the document for an item" );
|
||||||
|
|
||||||
|
TOOL_ACTION COMMON_ACTIONS::findDummy( "pcbnew.Find.Dummy", // only block the hotkey
|
||||||
|
AS_GLOBAL, MD_CTRL + int( 'F' ) );
|
||||||
|
|
||||||
TOOL_ACTION COMMON_ACTIONS::findMove( "pcbnew.InteractiveSelection.FindMove",
|
TOOL_ACTION COMMON_ACTIONS::findMove( "pcbnew.InteractiveSelection.FindMove",
|
||||||
AS_GLOBAL, 'T');
|
AS_GLOBAL, 'T');
|
||||||
|
|
||||||
|
|
|
@ -223,6 +223,8 @@ public:
|
||||||
/// Find an item and start moving
|
/// Find an item and start moving
|
||||||
static TOOL_ACTION findMove;
|
static TOOL_ACTION findMove;
|
||||||
|
|
||||||
|
/// Blocks CTRL+F, it is handled by wxWidgets
|
||||||
|
static TOOL_ACTION findDummy;
|
||||||
/**
|
/**
|
||||||
* Function TranslateLegacyId()
|
* Function TranslateLegacyId()
|
||||||
* Translates legacy tool ids to the corresponding TOOL_ACTION name.
|
* Translates legacy tool ids to the corresponding TOOL_ACTION name.
|
||||||
|
|
Loading…
Reference in New Issue