I am programming an inventory taking app that has 2 edittext input fields: barcode and quantity.
I am not using the soft keyboard as I am using my own UI keyboard made of buttons for the numbers as for my needs.
After entering in the barcode and pressing enter the program should focus the quantity edittext.
Here is the Issue:
When I key in the barcode using self created keys, upon hitting my self created enter key the next code line is to request focus to the quantity edittext. This works fine this way.
However, when I scan the barcode, instead of the focus going to the quantity edittext as intended, the focus goes to a random button.
The only difference in the code is that when keying in the numbers the enter button calls a Sub to requestfocus whereas when scanning I use the EnterPressed event of the Barcode editText to call that same sub.
The barcode scanner is programmed to append a CR at the end of each scan. I have checked to make sure it is also not sending TAB.
I've seen similar posts about this issue but still don't quite understand how the IME library would solve this.
I'm unsure how to solve this issue, any feedback would be greatly appreciated.