eeschema: Handle Windows click ordering
Click to add/edit footprint filters under MSW requires handling the listbox double click first before the item is handled. Fixes: lp:1816182 * https://bugs.launchpad.net/kicad/+bug/1816182
This commit is contained in:
parent
9ff0868813
commit
b4c0af021e
|
@ -729,9 +729,13 @@ void DIALOG_EDIT_COMPONENT_IN_LIBRARY::OnDeleteAlias( wxCommandEvent& event )
|
|||
|
||||
void DIALOG_EDIT_COMPONENT_IN_LIBRARY::OnFilterDClick( wxMouseEvent& event)
|
||||
{
|
||||
int idx = m_FootprintFilterListBox->HitTest( event.GetPosition() );
|
||||
wxCommandEvent dummy;
|
||||
OnAddFootprintFilter( dummy );
|
||||
event.Skip();
|
||||
|
||||
if( idx >= 0 )
|
||||
OnEditFootprintFilter( dummy );
|
||||
else
|
||||
OnAddFootprintFilter( dummy );
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue