Skip to content

Commit 7d37945

Browse files
committed
Move cursor of the TextBox to the tail
1 parent 2cc3da6 commit 7d37945

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,9 @@ public void ChangeMode(OmnibarMode modeToExpand, bool useTransition = true)
135135

136136
CurrentSelectedMode = modeToExpand;
137137

138+
// Move cursor of the TextBox to the tail
139+
_textBox.Select(_textBox.Text.Length, 0);
140+
138141
VisualStateManager.GoToState(CurrentSelectedMode, "Focused", true);
139142

140143
if (_isFocused)

src/Files.App.Controls/Omnibar/Omnibar.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
IsItemClickEnabled="True"
9898
ItemTemplate="{Binding CurrentSelectedMode.SuggestionItemTemplate, RelativeSource={RelativeSource TemplatedParent}, Mode=OneWay}"
9999
ItemsSource="{Binding CurrentSelectedMode.SuggestionItemsSource, RelativeSource={RelativeSource TemplatedParent}, Mode=OneWay}"
100-
SelectionMode="Single">
100+
SelectionMode="None">
101101
<ListView.ItemContainerTransitions />
102102
</ListView>
103103
</Border>

0 commit comments

Comments
 (0)