Hi,
Can I handle OnKeyPress on MudTextField getting the char before writting it, like in WinForms? How? How would the C# method parameters be? And how to add it inside the MudTextField tag?
I have something like this, and tried searching but found nothing, and think I'm missing something.
	
	
	
	
	
	
	
	
	
		
			
			
			
			
			
		
	
	
	
		
	
	
		
	
Thank you.
Pablo
PS: I managed to create a MudBlazor project, as cjard suggested me.
	
		
			
		
		
	
				
			Can I handle OnKeyPress on MudTextField getting the char before writting it, like in WinForms? How? How would the C# method parameters be? And how to add it inside the MudTextField tag?
I have something like this, and tried searching but found nothing, and think I'm missing something.
			
				Trying to handle OnKeyPress correctly:
			
		
		
		@page "/calc"
<PageTitle>Calculator</PageTitle>
<h3>Calculator</h3>
<MudTextField @bind-Value="input" @onkeypress="OnKeyPress"></MudTextField>
<MudButton @onclick="Calculate">=</MudButton>
@code {
    private string input = string.Empty;
    private void OnKeyPress()
    {
        
    }
    private void Calculate()
    {
        
    }
}Pablo
PS: I managed to create a MudBlazor project, as cjard suggested me.
 
	 
 
		