Browse Source

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
pull/13/head
Seth Hillbrand 7 years ago
parent
commit
b4c0af021e
  1. 8
      eeschema/dialogs/dialog_edit_component_in_lib.cpp

8
eeschema/dialogs/dialog_edit_component_in_lib.cpp

@ -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…
Cancel
Save