I'm making a form, where the data is entered through scanning bar codes (default code 128).
After scanning each value, the hand scanner is already configured to give <TAB>
and move to the next field, making it very convenient to use this form repetitively.
But the ENTER must be via keyboard. Losing that sequence of agile records. So I thought of creating a barcode with a sequence of values in which through a javascript function I would understand that this is a sign of ENTER , eg: In the code it would be '++++++' so when scanning this value JQuery would understand this sequence and would submit the form.
But unfortunately it did not work, because JQuery in my function can only understand the first key and not the sequence.
$(document).bind('keydown', '+++++', function (e) {
alerte('teste');
$('form#myForm').submit();
});
Or is there a way to make a special barcode for shipping?
Example on Fiddle link