Skip to content

Commit 5aba34d

Browse files
committed
Fixed text selection
1 parent 2b2a154 commit 5aba34d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ private void AutoSuggestBox_TextChanged(object sender, TextChangedEventArgs e)
137137
_textChangeReason = OmnibarTextChangeReason.UserInput;
138138
_userInput = _textBox.Text;
139139
}
140+
else if (_textChangeReason is OmnibarTextChangeReason.ProgrammaticChange)
141+
_textBox.SelectAll();
140142

141143
TextChanged?.Invoke(this, new(CurrentSelectedMode, _textChangeReason));
142144

0 commit comments

Comments
 (0)