@@ -11,7 +11,7 @@ namespace MudExtensions
11
11
/// Component that has select and autocomplete features.
12
12
/// </summary>
13
13
/// <typeparam name="T"></typeparam>
14
- public partial class MudComboBox < T > : MudBaseInputExtended < T ? >
14
+ public partial class MudComboBox < T > : MudBaseInputExtended < T >
15
15
{
16
16
#region Constructor, Injected Services, Parameters, Fields
17
17
@@ -38,7 +38,7 @@ protected internal void SetSearchString(T value)
38
38
private readonly string ? multiSelectionText ;
39
39
static readonly KeyInterceptorOptions _keyInterceptorOptions = new ( )
40
40
{
41
- EnableLogging = true ,
41
+ // EnableLogging = true,
42
42
TargetClass = "mud-input-control" ,
43
43
Keys =
44
44
{
@@ -849,7 +849,6 @@ protected override async Task OnAfterRenderAsync(bool firstRender)
849
849
850
850
if ( firstRender )
851
851
{
852
- // TODO: Use Task for HandleKeyDown / HandleKeyDown
853
852
await KeyInterceptorService . SubscribeAsync ( _elementId , _keyInterceptorOptions , keyDown : HandleKeyDown , keyUp : HandleKeyUp ) ;
854
853
await UpdateDataVisualiserTextAsync ( ) ;
855
854
_firstRendered = true ;
@@ -888,7 +887,7 @@ protected override void Dispose(bool disposing)
888
887
/// Protected keydown event.
889
888
/// </summary>
890
889
/// <param name="obj"></param>
891
- protected internal void HandleKeyDown ( KeyboardEventArgs obj )
890
+ protected internal async Task HandleKeyDown ( KeyboardEventArgs obj )
892
891
{
893
892
if ( Disabled || ReadOnly )
894
893
return ;
@@ -1011,7 +1010,7 @@ protected internal async Task SearchBoxHandleKeyDown(KeyboardEventArgs obj)
1011
1010
case "ArrowDown" :
1012
1011
case "Enter" :
1013
1012
case "NumpadEnter" :
1014
- HandleKeyDown ( obj ) ;
1013
+ await HandleKeyDown ( obj ) ;
1015
1014
return ;
1016
1015
1017
1016
case "Tab" :
@@ -1027,7 +1026,7 @@ protected internal async Task SearchBoxHandleKeyDown(KeyboardEventArgs obj)
1027
1026
/// Protected searchbox keyup event.
1028
1027
/// </summary>
1029
1028
/// <param name="obj"></param>
1030
- protected internal void SearchBoxHandleKeyUp ( KeyboardEventArgs obj )
1029
+ protected internal async Task SearchBoxHandleKeyUp ( KeyboardEventArgs obj )
1031
1030
{
1032
1031
ForceRenderItems ( ) ;
1033
1032
}
@@ -1036,7 +1035,7 @@ protected internal void SearchBoxHandleKeyUp(KeyboardEventArgs obj)
1036
1035
/// Protected keyup event.
1037
1036
/// </summary>
1038
1037
/// <param name="obj"></param>
1039
- protected internal async void HandleKeyUp ( KeyboardEventArgs obj )
1038
+ protected internal async Task HandleKeyUp ( KeyboardEventArgs obj )
1040
1039
{
1041
1040
ForceRenderItems ( ) ;
1042
1041
await OnKeyUp . InvokeAsync ( obj ) ;
0 commit comments