@@ -260,60 +260,60 @@ public async Task List_KeyboardNavigationTest()
260260 //Console.WriteLine(comp.Markup);
261261 var list = comp . FindComponent < MudListExtended < int > > ( ) . Instance ;
262262
263- await comp . InvokeAsync ( ( ) => list . HandleKeyDown ( new KeyboardEventArgs ( ) { Key = "ArrowDown" } ) ) ;
263+ await comp . InvokeAsync ( ( ) => list . HandleKeyDownAsync ( new KeyboardEventArgs ( ) { Key = "ArrowDown" } ) ) ;
264264 comp . WaitForAssertion ( ( ) => comp . FindComponents < MudListItemExtended < int > > ( ) [ 0 ] . Instance . IsActive . Should ( ) . BeTrue ( ) ) ;
265265 comp . WaitForAssertion ( ( ) => list . SelectedValues . Should ( ) . BeNullOrEmpty ( ) ) ;
266266
267- await comp . InvokeAsync ( ( ) => list . HandleKeyDown ( new KeyboardEventArgs ( ) { Key = "Enter" } ) ) ;
267+ await comp . InvokeAsync ( ( ) => list . HandleKeyDownAsync ( new KeyboardEventArgs ( ) { Key = "Enter" } ) ) ;
268268 comp . WaitForAssertion ( ( ) => comp . FindComponents < MudListItemExtended < int > > ( ) [ 0 ] . Instance . IsActive . Should ( ) . BeTrue ( ) ) ;
269269 comp . WaitForAssertion ( ( ) => list . SelectedValues . Should ( ) . ContainSingle ( ) ) ;
270270 //Second item is functional, should skip.
271- await comp . InvokeAsync ( ( ) => list . HandleKeyDown ( new KeyboardEventArgs ( ) { Key = "ArrowDown" } ) ) ;
271+ await comp . InvokeAsync ( ( ) => list . HandleKeyDownAsync ( new KeyboardEventArgs ( ) { Key = "ArrowDown" } ) ) ;
272272 comp . WaitForAssertion ( ( ) => comp . FindComponents < MudListItemExtended < int > > ( ) [ 0 ] . Instance . IsActive . Should ( ) . BeFalse ( ) ) ;
273273 comp . WaitForAssertion ( ( ) => comp . FindComponents < MudListItemExtended < int > > ( ) [ 2 ] . Instance . IsActive . Should ( ) . BeTrue ( ) ) ;
274274 comp . WaitForAssertion ( ( ) => list . SelectedValues . Should ( ) . ContainSingle ( ) ) ;
275275
276- await comp . InvokeAsync ( ( ) => list . HandleKeyDown ( new KeyboardEventArgs ( ) { Key = "NumpadEnter" } ) ) ;
276+ await comp . InvokeAsync ( ( ) => list . HandleKeyDownAsync ( new KeyboardEventArgs ( ) { Key = "NumpadEnter" } ) ) ;
277277 comp . WaitForAssertion ( ( ) => comp . FindComponents < MudListItemExtended < int > > ( ) [ 2 ] . Instance . IsActive . Should ( ) . BeTrue ( ) ) ;
278278 comp . WaitForAssertion ( ( ) => list . SelectedValues . Should ( ) . ContainInOrder ( new int [ ] { 1 , 3 } ) ) ;
279279
280- await comp . InvokeAsync ( ( ) => list . HandleKeyDown ( new KeyboardEventArgs ( ) { Key = "ArrowDown" } ) ) ;
281- await comp . InvokeAsync ( ( ) => list . HandleKeyDown ( new KeyboardEventArgs ( ) { Key = "ArrowDown" } ) ) ;
282- await comp . InvokeAsync ( ( ) => list . HandleKeyDown ( new KeyboardEventArgs ( ) { Key = "Enter" } ) ) ;
280+ await comp . InvokeAsync ( ( ) => list . HandleKeyDownAsync ( new KeyboardEventArgs ( ) { Key = "ArrowDown" } ) ) ;
281+ await comp . InvokeAsync ( ( ) => list . HandleKeyDownAsync ( new KeyboardEventArgs ( ) { Key = "ArrowDown" } ) ) ;
282+ await comp . InvokeAsync ( ( ) => list . HandleKeyDownAsync ( new KeyboardEventArgs ( ) { Key = "Enter" } ) ) ;
283283 comp . WaitForAssertion ( ( ) => comp . FindComponents < MudListItemExtended < int > > ( ) [ 2 ] . Instance . IsActive . Should ( ) . BeFalse ( ) ) ;
284284 comp . WaitForAssertion ( ( ) => comp . FindComponents < MudListItemExtended < int > > ( ) [ 5 ] . Instance . IsActive . Should ( ) . BeTrue ( ) ) ;
285285 comp . WaitForAssertion ( ( ) => list . SelectedValues . Should ( ) . HaveCount ( 3 ) ) ;
286286 comp . WaitForAssertion ( ( ) => list . SelectedValues . Should ( ) . Contain ( 5 ) ) ;
287287
288- await comp . InvokeAsync ( ( ) => list . HandleKeyDown ( new KeyboardEventArgs ( ) { Key = "Enter" } ) ) ;
288+ await comp . InvokeAsync ( ( ) => list . HandleKeyDownAsync ( new KeyboardEventArgs ( ) { Key = "Enter" } ) ) ;
289289 comp . WaitForAssertion ( ( ) => comp . FindComponents < MudListItemExtended < int > > ( ) [ 5 ] . Instance . IsActive . Should ( ) . BeTrue ( ) ) ;
290290 comp . WaitForAssertion ( ( ) => list . SelectedValues . Should ( ) . HaveCount ( 2 ) ) ;
291291 comp . WaitForAssertion ( ( ) => list . SelectedValues . Should ( ) . Contain ( 3 ) ) ;
292292 //Last disabled item should not be active
293- await comp . InvokeAsync ( ( ) => list . HandleKeyDown ( new KeyboardEventArgs ( ) { Key = "End" } ) ) ;
293+ await comp . InvokeAsync ( ( ) => list . HandleKeyDownAsync ( new KeyboardEventArgs ( ) { Key = "End" } ) ) ;
294294 comp . WaitForAssertion ( ( ) => comp . FindComponents < MudListItemExtended < int > > ( ) [ 9 ] . Instance . IsActive . Should ( ) . BeTrue ( ) ) ;
295295
296- await comp . InvokeAsync ( ( ) => list . HandleKeyDown ( new KeyboardEventArgs ( ) { Key = "Home" } ) ) ;
297- await comp . InvokeAsync ( ( ) => list . HandleKeyDown ( new KeyboardEventArgs ( ) { Key = "Enter" } ) ) ;
296+ await comp . InvokeAsync ( ( ) => list . HandleKeyDownAsync ( new KeyboardEventArgs ( ) { Key = "Home" } ) ) ;
297+ await comp . InvokeAsync ( ( ) => list . HandleKeyDownAsync ( new KeyboardEventArgs ( ) { Key = "Enter" } ) ) ;
298298 comp . WaitForAssertion ( ( ) => comp . FindComponents < MudListItemExtended < int > > ( ) [ 0 ] . Instance . IsActive . Should ( ) . BeTrue ( ) ) ;
299299 comp . WaitForAssertion ( ( ) => list . SelectedValues . Should ( ) . HaveCount ( 1 ) ) ;
300300 comp . WaitForAssertion ( ( ) => list . SelectedValues . Should ( ) . NotContain ( 1 ) ) ;
301301
302- await comp . InvokeAsync ( ( ) => list . HandleKeyDown ( new KeyboardEventArgs ( ) { Key = "a" , CtrlKey = true } ) ) ;
302+ await comp . InvokeAsync ( ( ) => list . HandleKeyDownAsync ( new KeyboardEventArgs ( ) { Key = "a" , CtrlKey = true } ) ) ;
303303 comp . WaitForAssertion ( ( ) => comp . FindComponents < MudListItemExtended < int > > ( ) [ 0 ] . Instance . IsActive . Should ( ) . BeTrue ( ) ) ;
304304 comp . WaitForAssertion ( ( ) => list . SelectedValues . Should ( ) . HaveCount ( 7 ) ) ;
305305 comp . WaitForAssertion ( ( ) => list . SelectedValues . Should ( ) . NotContain ( 2 ) ) ;
306306
307- await comp . InvokeAsync ( ( ) => list . HandleKeyDown ( new KeyboardEventArgs ( ) { Key = "A" , CtrlKey = true } ) ) ;
307+ await comp . InvokeAsync ( ( ) => list . HandleKeyDownAsync ( new KeyboardEventArgs ( ) { Key = "A" , CtrlKey = true } ) ) ;
308308 comp . WaitForAssertion ( ( ) => comp . FindComponents < MudListItemExtended < int > > ( ) [ 0 ] . Instance . IsActive . Should ( ) . BeTrue ( ) ) ;
309309 comp . WaitForAssertion ( ( ) => list . SelectedValues . Should ( ) . HaveCount ( 0 ) ) ;
310310
311311 await comp . InvokeAsync ( ( ) => comp . FindAll ( "div.mud-list-item-extended" ) [ 5 ] . Click ( ) ) ;
312312 comp . WaitForAssertion ( ( ) => list . SelectedValues . Should ( ) . HaveCount ( 1 ) ) ;
313313 comp . WaitForAssertion ( ( ) => list . SelectedValues . Should ( ) . Contain ( 5 ) ) ;
314314
315- await comp . InvokeAsync ( ( ) => list . HandleKeyDown ( new KeyboardEventArgs ( ) { Key = "ArrowDown" } ) ) ;
316- await comp . InvokeAsync ( ( ) => list . HandleKeyDown ( new KeyboardEventArgs ( ) { Key = "Enter" } ) ) ;
315+ await comp . InvokeAsync ( ( ) => list . HandleKeyDownAsync ( new KeyboardEventArgs ( ) { Key = "ArrowDown" } ) ) ;
316+ await comp . InvokeAsync ( ( ) => list . HandleKeyDownAsync ( new KeyboardEventArgs ( ) { Key = "Enter" } ) ) ;
317317 comp . WaitForAssertion ( ( ) => comp . FindComponents < MudListItemExtended < int > > ( ) [ 6 ] . Instance . IsActive . Should ( ) . BeTrue ( ) ) ;
318318 comp . WaitForAssertion ( ( ) => list . SelectedValues . Should ( ) . HaveCount ( 2 ) ) ;
319319 comp . WaitForAssertion ( ( ) => list . SelectedValues . Should ( ) . Contain ( 6 ) ) ;
0 commit comments