Initial commit

This commit is contained in:
Garulf 2021-12-04 02:04:57 -05:00
parent 2e6797937c
commit 09e10c4ce8
2 changed files with 9 additions and 0 deletions

View file

@ -172,6 +172,7 @@
Background="Transparent"
PreviewDragOver="OnPreviewDragOver"
Style="{DynamicResource QueryBoxStyle}"
SelectionChanged="TextBox_SelectionChanged"
Text="{Binding QueryText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
Visibility="Visible">
<TextBox.ContextMenu>

View file

@ -260,6 +260,14 @@ namespace Flow.Launcher
isProgressBarStoryboardPaused = true;
}
private void TextBox_SelectionChanged(object sender, RoutedEventArgs e)
{
// QueryTextSuggestionBox.ScrollToCaret();
QueryTextSuggestionBox.ScrollToLine(QueryTextBox.GetLineIndexFromCharacterIndex(QueryTextBox.SelectionStart));
QueryTextSuggestionBox.CaretIndex = QueryTextBox.CaretIndex;
}
public void WindowAnimator()
{
if (_animating)