in src/StructuredLogViewer.Avalonia/MainWindow.xaml.cs [499:533]
private async void Window_KeyUp(object sender, KeyEventArgs e)
{
if (e.Key == Key.F5)
{
Reload();
}
else if (e.Key == Key.F6 && e.KeyModifiers.HasFlag(KeyModifiers.Shift))
{
RebuildProjectOrSolution();
}
else if (e.Key == Key.F6)
{
await OpenProjectOrSolution();
}
else if (e.Key == Key.O && e.KeyModifiers.HasFlag(KeyModifiers.Control))
{
await OpenLogFile();
}
else if (e.Key == Key.F && e.KeyModifiers.HasFlag(KeyModifiers.Control))
{
FocusSearch();
}
else if (e.Key == Key.C && e.KeyModifiers.HasFlag(KeyModifiers.Control))
{
var content = mainContent.Content as BuildProgress;
if (content != null)
{
await Application.Current.Clipboard.SetTextAsync(content.MSBuildCommandLine);
}
}
else if (e.Key == Key.S && e.KeyModifiers.HasFlag(KeyModifiers.Control))
{
var task = SaveAs();
}
}