Commit 788a2543 authored by Maciej Suminski's avatar Maciej Suminski
Browse files

pcbnew: Minor fixes to 'Find Item' dialog (GAL canvas).

parent 7c9418f6
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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 );
    }
+4 −1
Original line number Diff line number Diff line
@@ -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');

+2 −0
Original line number Diff line number Diff line
@@ -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.