Lock the enter key inside the <p:editor>

Asked

Viewed 65 times

1

I’m using java, JPA and Primefaces with Wildfly. I have one from Primefaces that I want to block when the user presses the enter key there is no action. How should I proceed?

1 answer

2

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

Browser other questions tagged

You are not signed in. Login or sign up in order to post.