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
|
||||
{
|
||||
m_toolManager->ResetTools( TOOL_BASE::GAL_SWITCH );
|
||||
|
||||
// Redirect all events to the legacy canvas
|
||||
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
|
||||
|
||||
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" );
|
||||
|
||||
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",
|
||||
AS_GLOBAL, 'T');
|
||||
|
||||
|
|
|
@ -223,6 +223,8 @@ public:
|
|||
/// Find an item and start moving
|
||||
static TOOL_ACTION findMove;
|
||||
|
||||
/// Blocks CTRL+F, it is handled by wxWidgets
|
||||
static TOOL_ACTION findDummy;
|
||||
/**
|
||||
* Function TranslateLegacyId()
|
||||
* Translates legacy tool ids to the corresponding TOOL_ACTION name.
|
||||
|
|
Loading…
Reference in New Issue