Is there a way to NOT do a form submit when the user hits a carriage return in a single line field?
I'm using a bar code scanner to enter data in a form. The scanner always appends a carriage return to the end of the input. On multi-line input fields, that works great, but on single-line input fields, the carriage return causes the entire form to be submitted.
I'd like to either have the carriage return ignored, or have it move to the next field in the form.
Any way?