Xamarin.Forms icon indicating copy to clipboard operation
Xamarin.Forms copied to clipboard

Tab through list of entries doesnt work

Open JKennedy24 opened this issue 6 years ago • 4 comments

Description

Cannot tab through list of Entries.

I have a list of entries and I am using the "Tab" button on the keyboard on all 3 platforms.

Steps to Reproduce

  1. Create list of entries
  2. Press tab
  3. see it doesnt work

Expected Behavior

tab to next entry in thelist

Actual Behavior

nothing happens

JKennedy24 avatar Dec 07 '18 12:12 JKennedy24

Tabbing only works with a physical keyboard (I had to ask myself just to be sure :). So that'd be all desktop platforms or an attached bluetooth keyboard. FYI, It also affects accessibility. Please reopen if you're using a physical keyboard.

Possibly related: https://github.com/xamarin/Xamarin.Forms/issues/4561

kingces95 avatar Dec 07 '18 21:12 kingces95

@kingces95 I am using a bluetooth keyboard on my samsung galaxy tab.

here is my code:

 <ListView Grid.Row="1" ItemsSource="{Binding Milage}" SelectionMode="None">
        <ListView.ItemTemplate>
                <DataTemplate>
                     <ViewCell>
                           <Grid CompressedLayout.IsHeadless="{StaticResource CompressionLayoutOn}" RowSpacing="0">
                           <Grid.ColumnDefinitions>
                                  <ColumnDefinition/>
                                   <ColumnDefinition Width="100"/>
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions RowSpacing="1">
                                    <RowDefinition Height="49"/>
                                     <RowDefinition Height="1"/>
                             </Grid.RowDefinitions>
                                     <Label Margin="5,0,0,0" FontSize="{styling:Font 16}" VerticalOptions="Center" Grid.Column="0" Text="{Binding Date, Converter={StaticResource DateToLocalisedStringConverter}, ConverterParameter=DateFormatLong}">
                                            <Label.Triggers>
                                                    <DataTrigger TargetType="Label" Binding="{Binding BusinessMiles, Converter={StaticResource NullToTrueConverter}}" Value="True">
                                                        <Setter Property="TextColor" Value="{StaticResource InCompleteColour}"/>
                                                    </DataTrigger>
                                                </Label.Triggers>
                                            </Label>
                                            <Entry  x:Name="milage" TabIndex="{Binding SortKey}" VerticalOptions="Center"  Grid.Column="1" Margin="1" Text="{Binding BusinessMiles, Mode=TwoWay}" TextColor="Black" MinimumWidthRequest="30"/>
                                            <BoxView Grid.Row="1" Grid.ColumnSpan="2" Color="{StaticResource SecondarySeperatorColour}" />
                                        </Grid>
                                    </ViewCell>
                                </DataTemplate>
                            </ListView.ItemTemplate>
             </ListView>

JKennedy24 avatar Dec 10 '18 08:12 JKennedy24

@samhouts I tested this case with https://github.com/xamarin/Xamarin.Forms/pull/3989 and it doesn't seem like the tabindex on the elements inside the ListView are being honored

PureWeen avatar Jan 05 '19 05:01 PureWeen

@bruzkovsky

BrayanKhosravian avatar Jan 28 '20 15:01 BrayanKhosravian