Automaticall set last scanned item in input field