Skip to content

Commit f2f85cf

Browse files
committed
Fixed text selection
1 parent 548119e commit f2f85cf

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
@@ -125,6 +125,8 @@ private void AutoSuggestBox_TextChanged(object sender, TextChangedEventArgs e)
125125
_textChangeReason = OmnibarTextChangeReason.UserInput;
126126
_userInput = _textBox.Text;
127127
}
128+
else if (_textChangeReason is OmnibarTextChangeReason.ProgrammaticChange)
129+
_textBox.SelectAll();
128130

129131
TextChanged?.Invoke(this, new(CurrentSelectedMode, _textChangeReason));
130132

0 commit comments

Comments
 (0)