FIX: use Show instead of Popup to avoid hung in MacOS

Change-Id: I80b4d64f0e50a566cb6cbe0d4e8db696970ead21
This commit is contained in:
chunmao.guo 2022-08-04 11:57:57 +08:00 committed by Lane.Wei
parent 9a13ff7146
commit 3f6efa2037

View file

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