dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.21k stars 1.75k forks source link

Button Focus and Unfocus can't fire when run on MacOS #6482

Open AllenMiaoFil opened 2 years ago

AllenMiaoFil commented 2 years ago

Description

I created a MAUI button and tried to set Focus and Unfous events, but the events won't be fired on MacOS. The button look like won't get focus if we use tab to shift focus, Click button also does not work.

Steps to Reproduce

  1. Create a new MAUI Project on MacOS,
  2. Add a button with Focus and Unfocus events, and set event handler.
  3. Run a application and shift focus with 'Tab'

Version with bug

Release Candidate 1 (current)

Last version that worked well

Unknown/Other

Affected platforms

macOS

Affected platform versions

MacOS 12.0.1

Did you find any workaround?

No response

Relevant log output

No response

Depends on

ghost commented 2 years ago

We've moved this issue to the Backlog milestone. This means that it is not going to be worked on for the coming release. We will reassess the backlog following the current release and consider this item at that time. To learn more about our issue management process and to have better expectation regarding different types of issues you can read our Triage Process.

vmusasia10g commented 1 year ago

In relation to the mentioned issue -- I have confirmed that turning on the Keyboard Navigation setting allows to tab into entry fields on Mac and tab through some buttons.

However, I'm having a lot of issues in tab ordering and ability to reach certain buttons or entry fields that are within some nested layouts. And seeing the tab jump to the next item horizontally in view as opposed to tabbing within a group (like a contents of a grid or list view)

Redth commented 1 year ago

Another note here is that default system/os behaviour on mac may be different with respect to which things are considered keyboard navigable. Eg: there's a system setting to enable keyboard navigation on newer macOS versions.

ghost commented 8 months ago

We've added this issue to our backlog, and we will work to address it as time and resources allow. If you have any additional information or questions about this issue, please leave a comment. For additional info about issue management, please read our Triage Process.