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

Droid PreventKeyboardDisplayOnProgrammaticFocus is not preventing soft keyboard showing #19132

Open
FrozDark opened this issue Dec 26, 2024 · 0 comments
Assignees
Labels
area/focus Categorizes an issue as relevant to focus management difficulty/medium 🤔 Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI kind/bug Something isn't working project/input ⌨️ Categorizes an issue or PR as relevant to input (Button, CheckBox, Toggle, Scroll, Map, Numeric,...)

Comments

@FrozDark
Copy link

Current behavior

The property is not preventing a keyboard to display. On the contrary it forces to show when a hardware keyboard is connected

image

Maybe it's related to the if statement where Uno checks FocusState property to Programmatic which never sets to (Matches WinUI behaviour) - screen above

!(FocusState == FocusState.Programmatic && PreventKeyboardDisplayOnProgrammaticFocus);

Expected behavior

Prevent keyboard to show

How to reproduce it (as minimally and precisely as possible)

UnoIssue.zip

Workaround

Force hide keyboard natively on focus using directives

Works on UWP/WinUI

Yes

Environment

Uno.WinUI / Uno.WinUI.WebAssembly / Uno.WinUI.Skia

NuGet package version(s)

"Uno.Sdk": "5.5.56"

Affected platforms

Android

IDE

No response

IDE version

No response

Relevant plugins

No response

Anything else we need to know?

No response

@FrozDark FrozDark added difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification labels Dec 26, 2024
@MartinZikmund MartinZikmund self-assigned this Jan 2, 2025
@MartinZikmund MartinZikmund added project/input ⌨️ Categorizes an issue or PR as relevant to input (Button, CheckBox, Toggle, Scroll, Map, Numeric,...) area/focus Categorizes an issue as relevant to focus management difficulty/medium 🤔 Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI and removed triage/untriaged Indicates an issue requires triaging or verification difficulty/tbd Categorizes an issue for which the difficulty level needs to be defined. labels Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/focus Categorizes an issue as relevant to focus management difficulty/medium 🤔 Categorizes an issue for which the difficulty level is reachable with a good understanding of WinUI kind/bug Something isn't working project/input ⌨️ Categorizes an issue or PR as relevant to input (Button, CheckBox, Toggle, Scroll, Map, Numeric,...)
Projects
None yet
Development

No branches or pull requests

2 participants