mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 11:23:42 +00:00
Try to handle wxEVT_CHAR_HOOK on OSX
This commit is contained in:
@@ -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()); });
|
||||||
|
|||||||
Reference in New Issue
Block a user