mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 09:17:52 -06:00
FIX: force skip Focus events from wxTextCtrl
Change-Id: Ib583fc16dccce69a5506aed29d40587bec9b2373
This commit is contained in:
parent
af54a34567
commit
10998629f6
2 changed files with 2 additions and 0 deletions
|
@ -270,6 +270,7 @@ void SpinInput::onTextLostFocus(wxEvent &event)
|
||||||
// pass to outer
|
// pass to outer
|
||||||
event.SetId(GetId());
|
event.SetId(GetId());
|
||||||
ProcessEventLocally(event);
|
ProcessEventLocally(event);
|
||||||
|
e.Skip();
|
||||||
}
|
}
|
||||||
|
|
||||||
void SpinInput::onTextEnter(wxCommandEvent &event)
|
void SpinInput::onTextEnter(wxCommandEvent &event)
|
||||||
|
|
|
@ -65,6 +65,7 @@ void TextInput::Create(wxWindow * parent,
|
||||||
OnEdit();
|
OnEdit();
|
||||||
e.SetId(GetId());
|
e.SetId(GetId());
|
||||||
ProcessEventLocally(e);
|
ProcessEventLocally(e);
|
||||||
|
e.Skip();
|
||||||
});
|
});
|
||||||
text_ctrl->Bind(wxEVT_TEXT_ENTER, [this](auto &e) {
|
text_ctrl->Bind(wxEVT_TEXT_ENTER, [this](auto &e) {
|
||||||
OnEdit();
|
OnEdit();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue