Barcode readers does a keyboard emulation. It writes barcode and tab/enter/nothing (this can be configured on device) when finished
I use autocomplete only as a search feature, and not too much (I’m, building my own autocomplete), then I’m not totally sure about this but…Autocomplete fields, requires you to click on the item from the dropdown to get a value (reading you, before worked different, not sure). If you don’t click, there is no item choosed.
Things to take into consideration:
- Autocomplete field don't gets a value until an item is clicked on dropdown. If you choose a value, and then delete it, is not changed to empty.
- If you don't choose a value, onChange AjaxEvent is not fired.
Changing behaviour:
- onChange should fire anyway. This way you can check if a non-existing value was selected, to ask, for example, to create a new product/customer and so on...
- If search return only 1 record, should be selected when focus is lost (this could be parameterizable with an option. Select if 1 on search, or empty the field).
Again, not sure if it worked in the past for you. AFAIR always worked this way.