Skip to content

Commit b092aba

Browse files
committed
Set the input scopes of all textboxes so the touch keyboard is displayed correctly
1 parent 01a9eb0 commit b092aba

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

Signal-Windows/Controls/Conversation.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
<ColumnDefinition Width="*"/>
4949
<ColumnDefinition Width="Auto"/>
5050
</Grid.ColumnDefinitions>
51-
<TextBox Grid.Column="0" Name="InputTextBox" VerticalAlignment="Center" KeyDown="TextBox_KeyDown" PlaceholderText="Type a message" BorderBrush="{x:Null}" BorderThickness="0" TextWrapping="Wrap" TextChanged="InputTextBox_TextChanged"/>
51+
<TextBox Grid.Column="0" Name="InputTextBox" VerticalAlignment="Center" KeyDown="TextBox_KeyDown" PlaceholderText="Type a message" BorderBrush="{x:Null}" BorderThickness="0" TextWrapping="Wrap" TextChanged="InputTextBox_TextChanged" InputScope="Chat"/>
5252
<Button x:Name="SendMessageButton" Grid.Column="1" Click="SendMessageButton_Click" IsEnabled="{x:Bind SendEnabled, Mode=OneWay}" Background="{x:Bind HeaderBackground}" VerticalAlignment="Bottom" Width="50" VerticalContentAlignment="Stretch" MinHeight="50">
5353
<SymbolIcon Symbol="Send"/>
5454
</Button>

Signal-Windows/Views/AddContactPage.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818
</Ellipse.Fill>
1919
</Ellipse>
2020
<TextBlock Text="Name" Margin="0,25,0,0" />
21-
<TextBox Text="{x:Bind Vm.ContactName, Mode=TwoWay}" IsEnabled="{x:Bind Vm.UIEnabled, Mode=OneWay}" Margin="0,4,0,0" />
21+
<TextBox Text="{x:Bind Vm.ContactName, Mode=TwoWay}" IsEnabled="{x:Bind Vm.UIEnabled, Mode=OneWay}" Margin="0,4,0,0" InputScope="PersonalFullName" />
2222
<TextBlock Text="Number" Margin="0,24,0,0" />
23-
<TextBox Text="{x:Bind Vm.ContactNumber, Mode=TwoWay}" IsEnabled="{x:Bind Vm.UIEnabled, Mode=OneWay}" Margin="0,4,0,0" />
23+
<TextBox Text="{x:Bind Vm.ContactNumber, Mode=TwoWay}" IsEnabled="{x:Bind Vm.UIEnabled, Mode=OneWay}" Margin="0,4,0,0" InputScope="TelephoneNumber" />
2424
<Button x:Name="AddButton" Content="Add" IsEnabled="{x:Bind Vm.UIEnabled, Mode=OneWay}" HorizontalAlignment="Stretch" Margin="0,24,0,0" Click="AddButton_Click" />
2525
<Button x:Name="PickButton" Content="Pick From Contacts" IsEnabled="{x:Bind Vm.UIEnabled, Mode=OneWay}" HorizontalAlignment="Stretch" Margin="0,10,0,0" Click="PickButton_Click" />
2626
</StackPanel>

Signal-Windows/Views/RegisterFinalizationPage.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
<TextBlock x:Name="TitleTextBlock" Grid.Row="0" Foreground="White" FontSize="34" HorizontalAlignment="Center" FontWeight="Light" Text="Connect with Signal" VerticalAlignment="Center"/>
4444
<StackPanel Grid.Row="1">
4545
<TextBlock Foreground="White" HorizontalAlignment="Center" Text="Enter your SMS verification code" FontSize="24" FontWeight="SemiLight"/>
46-
<TextBox Width="200" Text="{x:Bind Vm.VerificationCode, Mode=TwoWay}" IsEnabled="{x:Bind Vm.UIEnabled, Mode=OneWay}" Margin="0,16,0,0"/>
46+
<TextBox Width="200" Text="{x:Bind Vm.VerificationCode, Mode=TwoWay}" IsEnabled="{x:Bind Vm.UIEnabled, Mode=OneWay}" Margin="0,16,0,0" InputScope="Number"/>
4747
<Button Background="White" Foreground="#2190EA" HorizontalAlignment="Center" Width="200" Margin="20 20 20 20" Click="FinishButton_Click" IsEnabled="{x:Bind Vm.UIEnabled, Mode=OneWay}" Content="Finish Registration"/>
4848
</StackPanel>
4949
</Grid>

Signal-Windows/Views/RegisterPage.xaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@
5252
<ColumnDefinition Width="*"/>
5353
</Grid.ColumnDefinitions>
5454
<TextBlock Grid.Column="0" Text="+" Foreground="White" FontSize="20"/>
55-
<TextBox Grid.Column="1" Text="{x:Bind Vm.PhonePrefix, Mode=TwoWay}" MinWidth="32"/>
56-
<TextBox Grid.Column="3" Text="{x:Bind Vm.PhoneSuffix, Mode=TwoWay}" PlaceholderText="Phone number"/>
55+
<TextBox Grid.Column="1" Text="{x:Bind Vm.PhonePrefix, Mode=TwoWay}" MinWidth="32" InputScope="TelephoneCountryCode"/>
56+
<TextBox Grid.Column="3" Text="{x:Bind Vm.PhoneSuffix, Mode=TwoWay}" PlaceholderText="Phone number" InputScope="TelephoneNumber"/>
5757
</Grid>
5858
</StackPanel>
5959
<TextBlock x:Name="VerifyTextBlock" Text="Verify your phone number to connect with Signal." FontSize="20" Foreground="White" HorizontalAlignment="Center" Margin="0,16,0,0" TextAlignment="Center" TextWrapping="Wrap"/>

0 commit comments

Comments
 (0)