Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 13 additions & 6 deletions src/StructuredLogViewer.Avalonia/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,20 +15,26 @@
<Separator />
<MenuItem Name="Build"
Header="_Build Solution/Project..."
HotKey="F6" />
HotKey="F6"
InputGesture="F6"/>
<MenuItem Name="Rebuild"
Header="Rebuild Solution/Project"
HotKey="Shift+F6" />
HotKey="Shift+F6"
InputGesture="Shift+F6"/>
<Separator />
<MenuItem Name="Open"
Header="_Open Log..."
HotKey="Ctrl+O" />
HotKey="Ctrl+O"
InputGesture="Ctrl+O"/>
<MenuItem Name="ReloadMenu"
Header="_Reload"
HotKey="F5" />
HotKey="F5"
InputGesture="F5"/>
<MenuItem Name="SaveAsMenu"
Header="_Save Log As..."
HotKey="Ctrl+S" />
HotKey="Ctrl+S"
InputGesture="Ctrl+S"
/>
<Separator />
<MenuItem Name="RecentProjectsMenu"
Header="Recent Projects"
Expand All @@ -45,7 +51,8 @@
<Separator />
<MenuItem Name="Exit"
Header="E_xit"
HotKey="Alt+F4" />
HotKey="Alt+F4"
InputGesture="Alt+F4"/>
</MenuItem>
<MenuItem Header="_Help">
<MenuItem Name="HelpLink"
Expand Down
22 changes: 1 addition & 21 deletions src/StructuredLogViewer.Avalonia/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -518,23 +518,7 @@ await System.Threading.Tasks.Task.Run(() =>

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();
}
Expand All @@ -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()
Expand Down