onkeydown not working for Multiline TextBoxes

Hey guys,

we have a following textbox like this: 

If multiline is false, we get the Eventcallback KeyPressed called, if multiline is true we don't. Any suggestions?

OnInput and onblur get called in both ways.

Best regards

3 Replies

JM Jeyanth Muthu Pratheeban Sankara Subramanian Syncfusion Team April 16, 2021 10:22 AM UTC

Hello Patrick, 

Thanks for contacting Syncfusion support. 

We validated the reported issue and we could able to reproduce it. We considered the reported issue as a bug in our end and the fix for the issue will be included in the patch release which is expected to be scheduled on May 5 2021 . We thank you for spending your time to report the issue and helping us to improve our products. You can track the status of the issue using the below feedback link. 


We appreciate your patience until then. 

Thanks, 
Jeyanth. 



UN Unknown April 16, 2021 12:25 PM UTC

Thanks for the reply, I'm looking forward to the coming release!

Is there also the possibility to add the KeyPressed event to the SfRichTextEditor too? That would be awesome! 

Best regards and thanks for your investigations.


JM Jeyanth Muthu Pratheeban Sankara Subramanian Syncfusion Team April 19, 2021 11:57 AM UTC

Hi Patrick, 
 
Thanks for your update. 
 
We have validated your query “Is there also the possibility to add the KeyPressed event to the SfRichTextEditor too?”  
  
Currently, the Rich Text Editor doesn’t support KeyPressed native event binding support. But this can be achieved using a workaround solution by wrapping the div element around the Rich Text Editor and binding the ‘onkeypress’ event to the div element, which will be triggered when the key is pressed in the Rich Text Editor. We have prepared a sample for your reference,  
  
Code Snippet:  
  
@using Syncfusion.Blazor.RichTextEditor  
  
<div id="rteWrapper" @onkeypress="@onKeyPressEventHandler">  
    <SfRichTextEditor>  
        <p>Rich Text Editor allows to insert images from online source as well as local computer where you want to insert the image in your content.</p>  
        <p><b>Get started Quick Toolbar to click on the image</b></p>  
        <p>It is possible to add custom style on the selected image inside the Rich Text Editor through quick toolbar.</p>  
    </SfRichTextEditor>  
</div>  
  
@code {  
    public void onKeyPressEventHandler(KeyboardEventArgs args)  
    {  
        var a = args;  
    }  
}  
  
  
Please check the above code snippet and the sample and let us know if it comes close to your requirement.  

Regards, 
Jeyanth. 


Loader.
Up arrow icon