Skip to content

Commit 60ae3d3

Browse files
authored
Ignore Shift + Delete shortcut if no items are selected (#3480)
1 parent cdf0963 commit 60ae3d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Files/Views/ModernShellPage.xaml.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1027,7 +1027,7 @@ private async void KeyboardAccelerator_Invoked(KeyboardAccelerator sender, Keybo
10271027
break;
10281028

10291029
case (false, true, false, true, VirtualKey.Delete): // shift + delete, PermanentDelete
1030-
if (!NavigationToolbar.IsEditModeEnabled && !InstanceViewModel.IsPageTypeSearchResults)
1030+
if (ContentPage.IsItemSelected && !NavigationToolbar.IsEditModeEnabled && !InstanceViewModel.IsPageTypeSearchResults)
10311031
{
10321032
await FilesystemHelpers.DeleteItemsAsync(
10331033
ContentPage.SelectedItems.Select((item) => StorageItemHelpers.FromPathAndType(

0 commit comments

Comments
 (0)