File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 927
927
FontSize =" 14"
928
928
Text =" "
929
929
TextAlignment =" Left"
930
- TextChanged =" OnPluginSearchTextChanged" >
930
+ LostFocus =" RefreshPluginListEventHandler"
931
+ KeyDown =" PluginFilterTxb_OnKeyDown" >
931
932
<TextBox .Style>
932
933
<Style BasedOn =" {StaticResource DefaultTextBoxStyle}" TargetType =" TextBox" >
933
934
<Style .Resources>
Original file line number Diff line number Diff line change 21
21
using System . Windows . Navigation ;
22
22
using Button = System . Windows . Controls . Button ;
23
23
using Control = System . Windows . Controls . Control ;
24
+ using KeyEventArgs = System . Windows . Input . KeyEventArgs ;
24
25
using MessageBox = System . Windows . MessageBox ;
25
26
using TextBox = System . Windows . Controls . TextBox ;
26
27
using ThemeManager = ModernWpf . ThemeManager ;
@@ -392,9 +393,14 @@ private bool PluginFilter(object item)
392
393
return false ;
393
394
}
394
395
395
- private void OnPluginSearchTextChanged ( object sender , TextChangedEventArgs e )
396
+ private void RefreshPluginListEventHandler ( object sender , RoutedEventArgs e )
396
397
{
397
398
pluginListView . Refresh ( ) ;
398
399
}
400
+ private void PluginFilterTxb_OnKeyDown ( object sender , KeyEventArgs e )
401
+ {
402
+ if ( e . Key == Key . Enter )
403
+ pluginListView . Refresh ( ) ;
404
+ }
399
405
}
400
406
}
You can’t perform that action at this time.
0 commit comments