diff --git a/src/StructuredLogViewer.Avalonia/MainWindow.xaml b/src/StructuredLogViewer.Avalonia/MainWindow.xaml index 73c7c475c..a5bd9cd8a 100644 --- a/src/StructuredLogViewer.Avalonia/MainWindow.xaml +++ b/src/StructuredLogViewer.Avalonia/MainWindow.xaml @@ -15,20 +15,26 @@ + HotKey="F6" + InputGesture="F6"/> + HotKey="Shift+F6" + InputGesture="Shift+F6"/> + HotKey="Ctrl+O" + InputGesture="Ctrl+O"/> + HotKey="F5" + InputGesture="F5"/> + HotKey="Ctrl+S" + InputGesture="Ctrl+S" + /> + HotKey="Alt+F4" + InputGesture="Alt+F4"/> 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)) + if (e.Key == Key.F && e.KeyModifiers.HasFlag(KeyModifiers.Control)) { FocusSearch(); } @@ -546,10 +530,6 @@ private async void Window_KeyUp(object sender, KeyEventArgs e) await Clipboard.SetTextAsync(content.MSBuildCommandLine); } } - else if (e.Key == Key.S && e.KeyModifiers.HasFlag(KeyModifiers.Control)) - { - _ = SaveAs(); - } } private void FocusSearch()