When pressing the Enter key in the Eclipse input field, the input is submitted.
However, this key event also adds a newline to the input text
This is not a problem when the cursor is positioned at the end of the input, since the newline will be trimmed by the parser.
The problem appears clearly when the cursor is positioned in the middle of some word, where no whitespace or newline can be expected. The input will be submitted with the addition of a newline character, which the parser cannot resolve.
When pressing the
Enter
key in the Eclipse input field, the input is submitted. However, this key event also adds a newline to the input text This is not a problem when the cursor is positioned at the end of the input, since the newline will be trimmed by the parser.The problem appears clearly when the cursor is positioned in the middle of some word, where no whitespace or newline can be expected. The input will be submitted with the addition of a newline character, which the parser cannot resolve.