mirror of
https://github.com/Flow-Launcher/Flow.Launcher.git
synced 2026-03-11 08:54:32 +00:00
Modified different way. fixed a bug not triggered while the backspace was pressed.
This commit is contained in:
parent
d4ffa93395
commit
ee44b4c2d4
2 changed files with 3 additions and 2 deletions
|
|
@ -173,7 +173,7 @@
|
|||
Background="Transparent"
|
||||
PreviewDragOver="OnPreviewDragOver"
|
||||
Style="{DynamicResource QueryBoxStyle}"
|
||||
Text="{Binding QueryText, Mode=TwoWay, UpdateSourceTrigger=Explicit}"
|
||||
Text="{Binding QueryText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
|
||||
PreviewKeyUp="QueryTextBox_KeyUp"
|
||||
Visibility="Visible">
|
||||
<TextBox.CommandBindings>
|
||||
|
|
|
|||
|
|
@ -560,7 +560,8 @@ namespace Flow.Launcher
|
|||
|
||||
private void QueryTextBox_KeyUp(object sender, KeyEventArgs e)
|
||||
{
|
||||
_viewModel.ChangeQueryText(QueryTextBox.Text);
|
||||
if(_viewModel.QueryText != QueryTextBox.Text)
|
||||
_viewModel.QueryText = QueryTextBox.Text;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue