diff --git a/src/Notepads/Views/MainPage/NotepadsMainPage.xaml.cs b/src/Notepads/Views/MainPage/NotepadsMainPage.xaml.cs index 0476d9f71..fd5569c0f 100644 --- a/src/Notepads/Views/MainPage/NotepadsMainPage.xaml.cs +++ b/src/Notepads/Views/MainPage/NotepadsMainPage.xaml.cs @@ -157,7 +157,7 @@ private void InitializeKeyboardShortcuts() new KeyboardCommand(VirtualKey.F12, (args) => EnterExitCompactOverlayMode()), new KeyboardCommand(VirtualKey.Escape, (args) => { if (RootSplitView.IsPaneOpen) RootSplitView.IsPaneOpen = false; }), new KeyboardCommand(VirtualKey.F1, (args) => { if (App.IsPrimaryInstance && !App.IsGameBarWidget) RootSplitView.IsPaneOpen = !RootSplitView.IsPaneOpen; }), - new KeyboardCommand(VirtualKey.F2, (args) => RenameFileAsync(NotepadsCore.GetSelectedTextEditor())), + new KeyboardCommand(VirtualKey.F2, async (args) => await RenameFileAsync(NotepadsCore.GetSelectedTextEditor())), new KeyboardCommand(true, true, true, VirtualKey.L, async (args) => { await OpenFileAsync(LoggingService.GetLogFile(), rebuildOpenRecentItems: false); }) }); }