Skip to content

Commit 5801f58

Browse files
committed
Update Omnibar.Events.cs
1 parent 8313457 commit 5801f58

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,9 @@ private void AutoSuggestBox_TextChanged(object sender, TextChangedEventArgs e)
134134
if (_textChangeReason is not OmnibarTextChangeReason.SuggestionChosen and
135135
not OmnibarTextChangeReason.ProgrammaticChange)
136136
{
137-
_textChangeReason = OmnibarTextChangeReason.UserInput;
137+
if (_textChangeReason is OmnibarTextChangeReason.None)
138+
_textChangeReason = OmnibarTextChangeReason.UserInput;
139+
138140
_userInput = _textBox.Text;
139141
}
140142
else if (_textChangeReason is OmnibarTextChangeReason.ProgrammaticChange)

0 commit comments

Comments
 (0)