Skip to content

Commit 99bb2ff

Browse files
committed
Fix
1 parent f740535 commit 99bb2ff

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Files.App.Controls/Omnibar/Omnibar.Properties.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,11 @@ partial void OnCurrentSelectedModeNameChanged(string? newValue)
4848

4949
partial void OnIsFocusedChanged(bool newValue)
5050
{
51-
if (CurrentSelectedMode is null)
51+
if (CurrentSelectedMode is null || _textBox is null)
5252
return;
5353

54+
_textBox.Focus(FocusState.Keyboard);
55+
5456
if (newValue)
5557
{
5658
VisualStateManager.GoToState(CurrentSelectedMode, "Focused", true);

0 commit comments

Comments
 (0)