We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e5a3fb commit 0ab026fCopy full SHA for 0ab026f
src/Files.App.Controls/Omnibar/Omnibar.cs
@@ -1,7 +1,6 @@
1
// Copyright (c) Files Community
2
// Licensed under the MIT License.
3
4
-using Microsoft.UI.Xaml.Controls;
5
using Microsoft.UI.Xaml.Markup;
6
using Microsoft.UI.Xaml.Media.Animation;
7
using Windows.Foundation;
@@ -246,7 +245,8 @@ internal protected void ChangeTextBoxText(string text)
246
245
_textBox.Text = text;
247
248
// Move the cursor to the end of the TextBox
249
- _textBox?.Select(_textBox.Text.Length, 0);
+ if (_textChangeReason == OmnibarTextChangeReason.SuggestionChosen)
+ _textBox?.Select(_textBox.Text.Length, 0);
250
}
251
252
private void SubmitQuery(object? item)
0 commit comments