File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
src/Files.App/Views/LayoutModes Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,12 @@ public ColumnViewBase() : base()
44
44
selectionRectangle . SelectionEnded += SelectionRectangle_SelectionEnded ;
45
45
tapDebounceTimer = DispatcherQueue . CreateTimer ( ) ;
46
46
this . ItemInvoked += ColumnViewBase_ItemInvoked ;
47
+ this . GotFocus += ColumnViewBase_GotFocus ;
48
+ }
49
+
50
+ private void ColumnViewBase_GotFocus ( object sender , RoutedEventArgs e )
51
+ {
52
+ openedFolderPresenter ? . Focus ( FocusState . Programmatic ) ;
47
53
}
48
54
49
55
private void ColumnViewBase_ItemInvoked ( object ? sender , EventArgs e )
@@ -60,6 +66,7 @@ private void ClearOpenedFolderSelectionIndicator()
60
66
openedFolderPresenter . Background = new SolidColorBrush ( Microsoft . UI . Colors . Transparent ) ;
61
67
var presenter = openedFolderPresenter . FindDescendant < Grid > ( ) ! ;
62
68
presenter ! . Background = new SolidColorBrush ( Microsoft . UI . Colors . Transparent ) ;
69
+ openedFolderPresenter = null ;
63
70
}
64
71
65
72
protected override void HookEvents ( )
You can’t perform that action at this time.
0 commit comments