xamarin/Xamarin.Forms

Focused not firing keyboard

开放

#4,573 创建于 2018年11月29日

 (4 条评论) (0 个反应) (0 位负责人)C# (1,926 个派生)batch import
a/VSMe/3 :clock3:help wantedt/bug :bug:up-for-grabs

仓库指标

星标
 (5,644 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

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.

贡献者指南