Skip to content

Commit

Permalink
Merge fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
goaaats committed Mar 27, 2019
2 parents 45263df + af0276a commit c73eb10
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
2 changes: 0 additions & 2 deletions XIVLauncher/FirstTimeSetup.xaml.cs
Expand Up @@ -20,8 +20,6 @@ namespace XIVLauncher
/// </summary>
public partial class FirstTimeSetup : Window
{
private int _step = 0;

public FirstTimeSetup()
{
InitializeComponent();
Expand Down
2 changes: 1 addition & 1 deletion XIVLauncher/MainWindow.xaml
Expand Up @@ -111,7 +111,7 @@
PreviewTextInput="OtpTextBox_OnPreviewTextInput" TextChanged="OtpTextBox_OnTextChanged" MaxLength="6" x:Name="OtpTextBox" />
</StackPanel>
</materialDesign:DialogHost.DialogContent>
<materialDesign:Card Margin="559,10,0,0" Height="213" HorizontalAlignment="Left" Width="192">
<materialDesign:Card Margin="559,10,0,0" Height="213" HorizontalAlignment="Left" Width="192" KeyDown="Card_KeyDown">
<Grid VerticalAlignment="Stretch" Margin="-122,-38,-114,-51">
<TextBox x:Name="LoginUsername" HorizontalAlignment="Left" Height="23" Margin="155,65,0,0"
TextWrapping="Wrap" VerticalAlignment="Top" Width="120"
Expand Down
8 changes: 8 additions & 0 deletions XIVLauncher/MainWindow.xaml.cs
Expand Up @@ -412,5 +412,13 @@ private void OtpTextBox_OnTextChanged(object sender, TextChangedEventArgs e)
StartGame();
}
}

private void Card_KeyDown(object sender, KeyEventArgs e)
{
if (e.Key == Key.Enter || e.Key == Key.Return)
{
HandleLogin(false);
}
}
}
}

0 comments on commit c73eb10

Please sign in to comment.