Skip to content

Entry is autofocused in a Popup but the soft keyboard is not opened, also cannot be opened from code! #2340

@jfversluis

Description

@jfversluis

Issue moved from dotnet/maui#25793


From @RsZoli on Tuesday, November 12, 2024 11:43:33 AM

Description

Focusing an Entry on a ContentPage opens the soft keyboard, and the same Entry can be focused with the keyboard opening from code as well, using:

await Entry_Name_In_Xaml.ShowKeyboardAsync(CancellationToken.None);

However if i put the very same Entry in a (CommunityToolkit.Maui.Views.)Popup, the Entry is focused automatically, which would not be an issue, if the soft keyboard would open as well, but it doesn't, nor can it be opened from code using:

await Entry_Popup.ShowKeyboardAsync(CancellationToken.None);

Image

Image

Steps to Reproduce

  1. Clone/download my repository
  2. Check the behavior under "EntryFocusBugRepro"

Link to public reproduction project repository

https://github.com/RsZoli/GitHubRepros

Version with bug

8.0.93 SR9.3

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Android, I was not able test on other platforms

Affected platform versions

Android 14

Did you find any workaround?

Sadly, no!

Relevant log output

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/viewsIssue/Discussion/PR that has to do with ViewsbugSomething isn't workingunverified

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions