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
4 changes: 4 additions & 0 deletions Files/Views/ModernShellPage.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,10 @@
Invoked="KeyboardAccelerator_Invoked"
IsEnabled="{x:Bind IsCurrentInstance, Mode=OneWay}"
Modifiers="Control" />
<KeyboardAccelerator
Key="F1"
Invoked="KeyboardAccelerator_Invoked"
IsEnabled="{x:Bind IsCurrentInstance, Mode=OneWay}" />
</Page.KeyboardAccelerators>
<Grid x:Name="RootGrid" SizeChanged="RootGrid_SizeChanged">
<Grid.ColumnDefinitions>
Expand Down
6 changes: 5 additions & 1 deletion Files/Views/ModernShellPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1110,6 +1110,10 @@ await FilesystemHelpers.DeleteItemsAsync(
case (true, false, false, _, VirtualKey.L): // ctrl + l, select address bar
NavigationToolbar.IsEditModeEnabled = true;
break;

case (false, false, false, _, VirtualKey.F1): // F1, open Files wiki
await Launcher.LaunchUriAsync(new Uri(@"https://files-community.github.io/docs"));
break;
};

switch (args.KeyboardAccelerator.Key)
Expand Down Expand Up @@ -1420,4 +1424,4 @@ public class NavigationArguments
public string SearchPathParam { get; set; } = null;
public bool IsLayoutSwitch { get; set; } = false;
}
}
}