Skip to content

Commit

Permalink
Minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
0x7c13 committed Dec 6, 2023
1 parent ac43c4f commit ae22011
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Notepads/Views/MainPage/NotepadsMainPage.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ private void InitializeKeyboardShortcuts()
new KeyboardCommand<KeyRoutedEventArgs>(VirtualKey.F12, (args) => EnterExitCompactOverlayMode()),
new KeyboardCommand<KeyRoutedEventArgs>(VirtualKey.Escape, (args) => { if (RootSplitView.IsPaneOpen) RootSplitView.IsPaneOpen = false; }),
new KeyboardCommand<KeyRoutedEventArgs>(VirtualKey.F1, (args) => { if (App.IsPrimaryInstance && !App.IsGameBarWidget) RootSplitView.IsPaneOpen = !RootSplitView.IsPaneOpen; }),
new KeyboardCommand<KeyRoutedEventArgs>(VirtualKey.F2, (args) => RenameFileAsync(NotepadsCore.GetSelectedTextEditor())),
new KeyboardCommand<KeyRoutedEventArgs>(VirtualKey.F2, async (args) => await RenameFileAsync(NotepadsCore.GetSelectedTextEditor())),
new KeyboardCommand<KeyRoutedEventArgs>(true, true, true, VirtualKey.L, async (args) => { await OpenFileAsync(LoggingService.GetLogFile(), rebuildOpenRecentItems: false); })
});
}
Expand Down

0 comments on commit ae22011

Please sign in to comment.