This is a new regression in wxWidgets 3.2.5 on macOS, this functionality worked correctly in wxWidgets 3.2.4
When left-clicking wxListCtrl or wxTreeCtrl, the control no longer takes focus. Clicking an item in these controls selects said item, but the control itself stays unfocused:
This can be reproduced in the listctrl and treectrl samples: Start the sample, click an item in the list/tree and then try to use the cursor keys to change the selected item. In 3.2.5, it does not work, in 3.2.4 the selection changes as expected.
It is however still possible to give the control focus by navigating to it using the Tab key.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
Thanks for reporting this. Unfortunately I don't see any smoking gun, git log v3.2.4..v3.2.5 src/osx
shows just a few commits none of which seem to be obviously related. If you can run git-bisect to find the commit which actually broke this, it would be great.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
It's this commit: abab8b4
If I reverse it, the focus on left-click is back to normal.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
Upon further testing, reversing that commit only fixes it for the listctrl sample, it does nothing for the treectrl sample.
Furthermore, even in the listctrl sample, there is still a small 20x20 in the top left of the list that upon click doesn't give the control focus.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
Reverting both abab8b4 and b8744be makes both the listctrl and treectrl samples work correctly again.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
Thanks for debugging this! Unfortunately I have absolutely no time to look at it now and I am not sure if I have the expertise to solve this even if I had.
@csomor Any ideas?
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
ok, happens only under macOS 14+, related to our use of the clippingView, also present on master, I'll look into it
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.