Make 'E' go straight to Custom Track Width dialog.

Also fixes some mouse capture issues.

Fixes https://gitlab.com/kicad/code/kicad/issues/7198
This commit is contained in:
Jeff Young 2021-01-20 18:19:06 +00:00
parent 07d4a28024
commit 3fcd0860c1
1 changed files with 7 additions and 9 deletions

View File

@ -1085,15 +1085,13 @@ void ROUTER_TOOL::performRouting()
}
else if( evt->IsAction( &PCB_ACTIONS::properties ) )
{
ACTION_MENU* menu;
if( m_router->Mode() == PNS::PNS_MODE_ROUTE_DIFF_PAIR )
menu = m_diffPairMenu.get();
else
menu = m_trackViaMenu.get();
menu->SetDirty();
SetContextMenu( menu, CMENU_NOW );
frame()->GetCanvas()->SetCurrentCursor( KICURSOR::ARROW );
controls()->SetAutoPan( false );
{
m_toolMgr->RunAction( ACT_CustomTrackWidth, true );
}
controls()->SetAutoPan( true );
setCursor();
}
else if( evt->IsAction( &ACT_EndTrack ) || evt->IsDblClick( BUT_LEFT ) )
{