FIX: on mac, the mouse event may triggered even disabled

jira: [STUDIO-11526]
Change-Id: Id68f43e1b6d1401c72966f97643d6631f23b87a9
This commit is contained in:
xin.zhang 2025-04-11 17:18:13 +08:00 committed by lane.wei
parent a75f521807
commit b2b4eabbfb
1 changed files with 2 additions and 0 deletions

View File

@ -276,6 +276,8 @@ void ComboBox::DoSetItemClientData(unsigned int n, void *data)
void ComboBox::mouseDown(wxMouseEvent &event) void ComboBox::mouseDown(wxMouseEvent &event)
{ {
if (!IsEnabled()) { return; } /*on mac, the event may triggered even disabled*/
SetFocus(); SetFocus();
if (drop_down) { if (drop_down) {
drop.Hide(); drop.Hide();