diff --git a/src/Files.App.Controls/Sidebar/SidebarView.xaml b/src/Files.App.Controls/Sidebar/SidebarView.xaml index 9adda0121df6..98d2a9770d6d 100644 --- a/src/Files.App.Controls/Sidebar/SidebarView.xaml +++ b/src/Files.App.Controls/Sidebar/SidebarView.xaml @@ -48,7 +48,6 @@ HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Canvas.ZIndex="10" - ContextRequested="PaneColumnGrid_ContextRequested" XYFocusKeyboardNavigation="Enabled"> @@ -63,6 +62,7 @@ diff --git a/src/Files.App.Controls/Sidebar/SidebarView.xaml.cs b/src/Files.App.Controls/Sidebar/SidebarView.xaml.cs index 02ed4fdf4c69..7675d46a2286 100644 --- a/src/Files.App.Controls/Sidebar/SidebarView.xaml.cs +++ b/src/Files.App.Controls/Sidebar/SidebarView.xaml.cs @@ -228,7 +228,7 @@ private void SidebarResizer_ManipulationCompleted(object sender, ManipulationCom e.Handled = true; } - private void PaneColumnGrid_ContextRequested(UIElement sender, ContextRequestedEventArgs e) + private void MenuItemHostScrollViewer_ContextRequested(UIElement sender, ContextRequestedEventArgs e) { var newArgs = new ItemContextInvokedArgs(null, e.TryGetPosition(this, out var point) ? point : default); ViewModel.HandleItemContextInvokedAsync(this, newArgs);