mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-16 10:02:12 +00:00
FIX: force skip Focus events from wxTextCtrl
Change-Id: Ib583fc16dccce69a5506aed29d40587bec9b2373
This commit is contained in:
@@ -270,6 +270,7 @@ void SpinInput::onTextLostFocus(wxEvent &event)
|
||||
// pass to outer
|
||||
event.SetId(GetId());
|
||||
ProcessEventLocally(event);
|
||||
e.Skip();
|
||||
}
|
||||
|
||||
void SpinInput::onTextEnter(wxCommandEvent &event)
|
||||
|
||||
@@ -65,6 +65,7 @@ void TextInput::Create(wxWindow * parent,
|
||||
OnEdit();
|
||||
e.SetId(GetId());
|
||||
ProcessEventLocally(e);
|
||||
e.Skip();
|
||||
});
|
||||
text_ctrl->Bind(wxEVT_TEXT_ENTER, [this](auto &e) {
|
||||
OnEdit();
|
||||
|
||||
Reference in New Issue
Block a user