FIX: call DismissAndNotify to manual close popup

Change-Id: I395708a98dda390f81d52151c9c52ba367de5a3d
This commit is contained in:
chunmao.guo 2022-08-04 16:25:14 +08:00 committed by Lane.Wei
parent b03a93d7fc
commit 8300c386e0
2 changed files with 4 additions and 11 deletions

View file

@ -215,7 +215,7 @@ void ComboBox::mouseDown(wxMouseEvent &event)
} else if (drop.HasDismissLongTime()) {
drop.autoPosition();
drop_down = true;
drop.Show(); // Popup() will hung on MacOS
drop.Popup();
wxCommandEvent e(wxEVT_COMBOBOX_DROPDOWN);
GetEventHandler()->ProcessEvent(e);
}
@ -242,7 +242,7 @@ void ComboBox::keyDown(wxKeyEvent& event) {
} else if (drop.HasDismissLongTime()) {
drop.autoPosition();
drop_down = true;
drop.Show(); // Popup() will hung on MacOS
drop.Popup();
wxCommandEvent e(wxEVT_COMBOBOX_DROPDOWN);
GetEventHandler()->ProcessEvent(e);
}