title: Removing new line function when enter button is pressed Java
body: <p>I have a text area that I would like to become blank when the enter button is pressed. I know this would normally be done with a setText method. However when I do this, the text is removed but the new line function created by the return key being pressed. My question is, is the anyway of stopping this default action from happening?</p>
  
  <p>thanks</p>