Scanner laser barcode

Hello
I want a solution to the problem of reading when I put the barcode number inside the textbox through the camera. It brings me the item from the txt file. I have no problem with that, but when I read it from a portable laser barcode, it sends after reading Enter. How can I read from the file when reading the number, it sends EInter and brings me the result, and for information When I press done on the phone keyboard, it brings me the result, what is the solution?

Show your relevant blocks