Lock the enter key inside the p: editor

1

I'm using java, JPA and PrimeFaces with Wildfly. I have one of the PrimeFaces that I want to block when the user hit the enter key there is no action. How should I proceed?

    
asked by anonymous 25.05.2017 / 15:17

1 answer

2

In your inputText put in the onkeyPress property.% onkeypress="if(event.keyCode == 13){event.preventDefault(); return false;}"

    
02.06.2017 / 16:16