Skip to content

Commit

Permalink
Fix variant field not working on OSX
Browse files Browse the repository at this point in the history
wxOSX/cocoa doesn't fire EVT_TEXT on combo box selection for some reason
but does fire EVT_COMBOBOX
  • Loading branch information
qu1ck committed Dec 16, 2018
1 parent 407a105 commit e1affce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion InteractiveHtmlBom/dialog/dialog_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,7 @@ def __init__( self, parent, id = wx.ID_ANY, pos = wx.DefaultPosition, size = wx.
self.netlistFilePicker.Bind( wx.EVT_FILEPICKER_CHANGED, self.OnNetlistFileChanged )
self.m_button1.Bind( wx.EVT_BUTTON, self.OnExtraFieldsUp )
self.m_button2.Bind( wx.EVT_BUTTON, self.OnExtraFieldsDown )
self.boardVariantFieldBox.Bind( wx.EVT_TEXT, self.OnBoardVariantFieldChange )
self.boardVariantFieldBox.Bind( wx.EVT_COMBOBOX, self.OnBoardVariantFieldChange )

def __del__( self ):
pass
Expand Down
4 changes: 2 additions & 2 deletions settings_dialog.fbp
Original file line number Diff line number Diff line change
Expand Up @@ -3839,7 +3839,7 @@
<event name="OnAux2Up"></event>
<event name="OnChar"></event>
<event name="OnCharHook"></event>
<event name="OnCombobox"></event>
<event name="OnCombobox">OnBoardVariantFieldChange</event>
<event name="OnComboboxCloseup"></event>
<event name="OnComboboxDropdown"></event>
<event name="OnEnterWindow"></event>
Expand All @@ -3863,7 +3863,7 @@
<event name="OnRightUp"></event>
<event name="OnSetFocus"></event>
<event name="OnSize"></event>
<event name="OnText">OnBoardVariantFieldChange</event>
<event name="OnText"></event>
<event name="OnTextEnter"></event>
<event name="OnUpdateUI"></event>
</object>
Expand Down

0 comments on commit e1affce

Please sign in to comment.