diff --git a/src/Files.App/Views/LayoutModes/ColumnViewBase.xaml.cs b/src/Files.App/Views/LayoutModes/ColumnViewBase.xaml.cs index f20c345cf0ab..ddd84416d904 100644 --- a/src/Files.App/Views/LayoutModes/ColumnViewBase.xaml.cs +++ b/src/Files.App/Views/LayoutModes/ColumnViewBase.xaml.cs @@ -237,6 +237,9 @@ private void HandleRightClick(object sender, RightTappedRoutedEventArgs e) private void FileList_PreviewKeyUp(object sender, KeyRoutedEventArgs e) { + if (IsRenamingItem || !(e.Key is VirtualKey.Up or VirtualKey.Down or VirtualKey.Right)) + return; + // Open selected directory if (IsItemSelected && SelectedItem?.PrimaryItemAttribute == StorageItemTypes.Folder) ItemInvoked?.Invoke(new ColumnParam { Source = this, NavPathParam = (SelectedItem is ShortcutItem sht ? sht.TargetPath : SelectedItem.ItemPath), ListView = FileList }, EventArgs.Empty);