xamarin/Xamarin.Forms

Focused not firing keyboard

Aperta

#4573 aperta il 29 nov 2018

 (4 commenti) (0 reazioni) (0 assegnatari)C# (1926 fork)batch import
a/VSMe/3 :clock3:help wantedt/bug :bug:up-for-grabs

Metriche repository

Star
 (5644 stelle)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

From @achrafbenalaya on November 27, 2018 13:41

In this example , the keyboard is not firing only after focusing 2 time on entry , I tried this a lot and seems there is an issue right here . <VisualState x:Name="Focused"> <VisualState.Setters> <Setter Property="FontSize" Value="36" /> <Setter Property="BackgroundColor" Value="Lime" /> </VisualState.Setters> </VisualState>

Copied from original issue: MicrosoftDocs/xamarin-docs#1180

Steps to Reproduce:

  1. Get the sample from https://developer.xamarin.com/samples/xamarin-forms/UserInterface/VsmDemos/
  2. Tap VSM on View
  3. Type something into the third box. Second box should turn green.
  4. Dismiss keyboard.
  5. Tap on second box.

Expected result

Soft keyboard appears

Actual result

Nothing. Keyboard does not appear unless you tap the second box again.

Tested on Pixel 3 XL.

Guida contributor