Skip to content

Commit 09e10c4

Browse files
committed
Initial commit
1 parent 2e67979 commit 09e10c4

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

Flow.Launcher/MainWindow.xaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,7 @@
172172
Background="Transparent"
173173
PreviewDragOver="OnPreviewDragOver"
174174
Style="{DynamicResource QueryBoxStyle}"
175+
SelectionChanged="TextBox_SelectionChanged"
175176
Text="{Binding QueryText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
176177
Visibility="Visible">
177178
<TextBox.ContextMenu>

Flow.Launcher/MainWindow.xaml.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,14 @@ private void InitProgressbarAnimation()
260260
isProgressBarStoryboardPaused = true;
261261
}
262262

263+
private void TextBox_SelectionChanged(object sender, RoutedEventArgs e)
264+
{
265+
266+
// QueryTextSuggestionBox.ScrollToCaret();
267+
QueryTextSuggestionBox.ScrollToLine(QueryTextBox.GetLineIndexFromCharacterIndex(QueryTextBox.SelectionStart));
268+
QueryTextSuggestionBox.CaretIndex = QueryTextBox.CaretIndex;
269+
}
270+
263271
public void WindowAnimator()
264272
{
265273
if (_animating)

0 commit comments

Comments
 (0)