Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
RsZoli opened this issue Nov 12, 2024 · 3 comments
Labels
area-controls-entry Entry platform/android 🤖 s/needs-attention Issue has more information and needs another look s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working

Comments

@RsZoli
Copy link

RsZoli commented Nov 12, 2024

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

@RsZoli RsZoli added the t/bug Something isn't working label Nov 12, 2024
@mattleibow
Copy link
Member

This may be a bug in the maui community toolkit, maybe open the issue there for them to investigate?

@mattleibow mattleibow added s/needs-info Issue needs more info from the author area-controls-entry Entry labels Nov 12, 2024
@Zhanglirong-Winnie Zhanglirong-Winnie added s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Nov 13, 2024
@Zhanglirong-Winnie
Copy link

This issue has been verified using Visual Studio 17.12 Preview 5(8.0.93 & 8.0.92 & 8.0.3 & 9.0.0-rc.2.24503.2). Can repro this issue on android platform.

@jfversluis
Copy link
Member

This issue was moved to CommunityToolkit/Maui#2340

@dotnet dotnet locked and limited conversation to collaborators Nov 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-entry Entry platform/android 🤖 s/needs-attention Issue has more information and needs another look s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants