title: How to disable sound when I press ALT+ ENTER in javafx.scene.control.TextArea?
body: <pre><code> val textArea = new TextArea(text) {
        addEventFilter(KeyEvent.ANY, (event: KeyEvent) =&gt; {
          if (event.getEventType == KeyEvent.KEY_PRESSED &amp;&amp; event.getCode == KeyCode.ENTER) {
            event.consume()
            if (event.isAltDown)
              insertText(getCaretPosition,"\n")
          }
        })
      }
  </code></pre>
  
  <p>How to disable sound when I press ALT+ ENTER in javafx.scene.control.TextArea?</p>