Droid
PreventKeyboardDisplayOnProgrammaticFocus
is not preventing soft keyboard showing
#19132
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,...)
Current behavior
The property is not preventing a keyboard to display. On the contrary it forces to show when a hardware keyboard is connected
Maybe it's related to the if statement where Uno checks
FocusState
property to Programmatic which never sets to (Matches WinUI behaviour) - screen aboveuno/src/Uno.UI/UI/Xaml/Controls/TextBox/TextBox.Android.cs
Line 477 in 294fa96
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
The text was updated successfully, but these errors were encountered: