File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 173
173
Background =" Transparent"
174
174
PreviewDragOver =" OnPreviewDragOver"
175
175
Style =" {DynamicResource QueryBoxStyle}"
176
- Text =" {Binding QueryText, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged}"
176
+ Text =" {Binding QueryText, Mode=TwoWay, UpdateSourceTrigger=Explicit}"
177
+ PreviewKeyUp =" QueryTextBox_KeyUp"
177
178
Visibility =" Visible" >
178
179
<TextBox .CommandBindings>
179
180
<CommandBinding Command =" ApplicationCommands.Copy" Executed =" OnCopy" />
Original file line number Diff line number Diff line change 1
- using System ;
1
+ using System ;
2
2
using System . ComponentModel ;
3
3
using System . Threading . Tasks ;
4
4
using System . Windows ;
20
20
using System . Windows . Media ;
21
21
using Flow . Launcher . Infrastructure . Hotkey ;
22
22
using Flow . Launcher . Plugin . SharedCommands ;
23
+ using System . Windows . Data ;
23
24
24
25
namespace Flow . Launcher
25
26
{
@@ -555,5 +556,11 @@ public void InitializeColorScheme()
555
556
ModernWpf . ThemeManager . Current . ApplicationTheme = ModernWpf . ApplicationTheme . Dark ;
556
557
}
557
558
}
559
+
560
+ private void QueryTextBox_KeyUp ( object sender , KeyEventArgs e )
561
+ {
562
+ BindingExpression be = QueryTextBox . GetBindingExpression ( System . Windows . Controls . TextBox . TextProperty ) ;
563
+ be . UpdateSource ( ) ;
564
+ }
558
565
}
559
- }
566
+ }
You can’t perform that action at this time.
0 commit comments