File tree Expand file tree Collapse file tree 1 file changed +2
-18
lines changed Expand file tree Collapse file tree 1 file changed +2
-18
lines changed Original file line number Diff line number Diff line change @@ -88,9 +88,7 @@ public BigListBox(string prompt,
88
88
SelectedItem = 0
89
89
} ;
90
90
listView . SetSource ( new ObservableCollection < string > ( ErrorStringArray ) ) ;
91
-
92
- this . listView . KeyDown += this . ListView_KeyPress ;
93
-
91
+
94
92
this . listView . MouseClick += this . ListView_MouseClick ;
95
93
96
94
this . collection = this . BuildList ( this . GetInitialSource ( ) ) . ToList ( ) ;
@@ -223,21 +221,7 @@ private void ListView_MouseClick(object? sender, MouseEventArgs obj)
223
221
this . Accept ( ) ;
224
222
}
225
223
}
226
-
227
- private void ListView_KeyPress ( object ? sender , Key key )
228
- {
229
- // if user types in some text change the focus to the text box to enable searching
230
- var c = ( char ) key ;
231
-
232
- // backspace or letter/numbers
233
- if ( key == Key . Backspace || char . IsLetterOrDigit ( c ) )
234
- {
235
- this . searchBox ? . FocusDeepest ( NavigationDirection . Forward , TabBehavior . TabStop ) ;
236
- this . searchBox ? . NewKeyDownEvent ( key ) ;
237
- key . Handled = true ;
238
- }
239
- }
240
-
224
+
241
225
private bool Timer ( )
242
226
{
243
227
if ( this . changes && DateTime . Now . Subtract ( this . lastKeypress ) > TimeSpan . FromMilliseconds ( 100 ) )
You can’t perform that action at this time.
0 commit comments