How can I make the Enter Key behave like the Tab Key and move to the next control

Hello !

Please tell me how can I make the Enter Key behave like the Tab Key and move to the next control !

I tried the following code but not working.

<InputText Id="name" @bind-Value="@person.name" @onkeypress="@CheckKey_InputText"></InputText>

   private void CheckKey_InputText(KeyboardEventArgs args)

    {

        if (args.Code == "Enter" || args.Code == "NumpadEnter")

        {  SendKeys.Send('{TAB}'); }

    }

Thank You !


1 Reply

BC Berly Christopher Syncfusion Team October 21, 2021 03:11 PM UTC

Hi Laurentiu, 
  
Greetings from Syncfusion support. 
  
We can achieve the requested requirement with help of following the instructions from the below mentioned blogs. 
  
  
  
Regards, 
Berly B.C 


Loader.
Up arrow icon