xamarin/Xamarin.Forms

Focused not firing keyboard

Open

#4,573 opened on Nov 29, 2018

 (4 comments) (0 reactions) (0 assignees)C# (1,926 forks)batch import
a/VSMe/3 :clock3:help wantedt/bug :bug:up-for-grabs

Repository metrics

Stars
 (5,644 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

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.

Contributor guide