Try to handle wxEVT_CHAR_HOOK on OSX
This commit is contained in:
parent
8c7cc73da6
commit
3391ea050d
1 changed files with 7 additions and 1 deletions
|
@ -274,7 +274,13 @@ wxBoxSizer* create_objects_list(wxWindow *win)
|
||||||
event.Skip();
|
event.Skip();
|
||||||
});
|
});
|
||||||
|
|
||||||
m_objects_ctrl->Bind(wxEVT_CHAR, [](wxKeyEvent& event) { object_ctrl_key_event(event); });
|
m_objects_ctrl->Bind(
|
||||||
|
#ifdef __WXOSX__
|
||||||
|
wxEVT_CHAR_HOOK,
|
||||||
|
#else
|
||||||
|
wxEVT_CHAR,
|
||||||
|
#endif //__WXOSX__
|
||||||
|
[](wxKeyEvent& event) { object_ctrl_key_event(event); });
|
||||||
|
|
||||||
#ifdef __WXMSW__
|
#ifdef __WXMSW__
|
||||||
m_objects_ctrl->Bind(wxEVT_CHOICE, [](wxCommandEvent& event) { update_extruder_in_config(event.GetString()); });
|
m_objects_ctrl->Bind(wxEVT_CHOICE, [](wxCommandEvent& event) { update_extruder_in_config(event.GetString()); });
|
||||||
|
|
Loading…
Reference in a new issue