mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Initial commit
This commit is contained in:
parent
2e6797937c
commit
09e10c4ce8
2 changed files with 9 additions and 0 deletions
|
|
@ -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>
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue