Skip to content

Commit 2ad1b5b

Browse files
committed
Remove extra if statement
1 parent 700e6c2 commit 2ad1b5b

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/Files.App/Views/Layouts/ColumnLayoutPage.xaml.cs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -426,9 +426,6 @@ ParentShellPageInstance is null ||
426426
}
427427
else if (e.Key == VirtualKey.Left) // Left arrow: select parent folder (previous column)
428428
{
429-
if (ParentShellPageInstance is not null)
430-
return;
431-
432429
var currentBladeIndex = (ParentShellPageInstance is ColumnShellPage associatedColumnShellPage) ? associatedColumnShellPage.ColumnParams.Column : 0;
433430
this.FindAscendant<ColumnsLayoutPage>()?.MoveFocusToPreviousBlade(currentBladeIndex);
434431
FileList.SelectedItem = null;
@@ -437,9 +434,6 @@ ParentShellPageInstance is null ||
437434
}
438435
else if (e.Key == VirtualKey.Right) // Right arrow: switch focus to next column
439436
{
440-
if (ParentShellPageInstance is not null)
441-
return;
442-
443437
var currentBladeIndex = (ParentShellPageInstance is ColumnShellPage associatedColumnShellPage) ? associatedColumnShellPage.ColumnParams.Column : 0;
444438
this.FindAscendant<ColumnsLayoutPage>()?.MoveFocusToNextBlade(currentBladeIndex + 1);
445439
e.Handled = true;

0 commit comments

Comments
 (0)