OnKeyPress event missing

We are trying to achieve some actions on keypress event in the textbox component. We cant able to find keypress event in syncfusion.


1 Reply

BC Berly Christopher Syncfusion Team December 7, 2021 01:38 PM UTC

Hi Anand Mani, 
  
Greetings from Syncfusion support. 
  
We can bind the keypress event to the TextBox component in the componentDidMount() life cycle since we don’t have provided public keypress event. 
  
  componentDidMount() { 
    document 
      .getElementById('textbox') 
      .addEventListener('keypress', function (e) { 
        console.log('key press event triggered'); 
      }); 
  } 
 
  
  
Regards, 
Berly B.C 


Loader.
Up arrow icon