FIX: force skip Focus events from wxTextCtrl

Change-Id: Ib583fc16dccce69a5506aed29d40587bec9b2373
This commit is contained in:
chunmao.guo 2022-08-12 15:26:37 +08:00 committed by Lane.Wei
parent af54a34567
commit 10998629f6
2 changed files with 2 additions and 0 deletions

View file

@ -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();