Focus events not working in MAC
- Dominant language
- C#
- Stars
- 23.3k
- Forks
- 2k
- Avg merge
- 1d 14h
- Merged PRs (30d)
- 296
Description
### Description
The focus and unfocus events are not triggering in MAC on tapping.
We have a custom layout that has a tap gesture listener, and we expect on tapping the layout or it's children the focus event should trigger, and on tapping outside the layout the unfocused event should trigger. This behavior is working fine in windows but in mac and ios platforms the events are never raised.
### Steps to Reproduce
I've created a sample including stack layouts and button controls.
1. Run the attached sample in windows.
2. Place break points in focused and unfocused event handlers from code behind.
3. Tap the button and you can see the focused event of button and layout are raised.
4. Run the same in mac catalyst and set breakpoints.
5. In mac the events will not be triggered for both buttons and layouts.
### Link to public reproduction project repository
https://github.com/KarthikRajaAKR/Samples/tree/main/FocusEvents
### Version with bug
6.0.486 (current)
### Last version that worked well
Unknown/Other
### Affected platforms
iOS, macOS
### Affected platform versions
MacOS Monterey v12.1, iOS 13
### Did you find any workaround?
No
### Relevant log output
_No response_
Contributor guide
Research direction
Start with the public reproduction project at Samples/FocusEvents and compare the focus and unfocus handlers when tapping buttons and layouts on Windows versus iOS and Mac Catalyst. Verify the behavior against the reported platforms and consider the work done when the expected focus events are raised on tap and unfocus events occur when tapping outside the layout.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp, ios, macos
- Domain
- desktop, frontend, mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100