I have an android device with a physical keyboard.
My app works fine on devices with only a touch screen.
The example here is that there are multiple edittext boxes on the screen.
Textbox1 - 1234
Textbox2 - ABC
Textbox3 - BLANK
My app selects all text in the text box when it has focus, this is so the user can type over, or scan a barcode to replace it easily.
So Say user starts in Textbox1 and scans 1234 (barcode hits enter after scan, focus changed to Textbox2, the text "ABC" is already there AND my app selects it.
On a non-keyboard device, I hit the enter/next button on the on screen keyboard and it leaves the text there and goes to Textbox3.
On the physical keyboard device, if I hit enter in this textbox it clears the text and goes to the next field.
However, if I turn ON the virtual keyboard, on the physical keyboard device, AND even if I use IME.HideKeyboard to keep it hidden, the physical enter key now does NOT clear the text box when hitting enter.
Any ideas on the behavior difference and if I can remedy it without turning on the virtual keyboard?
Many thanks,
Chris
My app works fine on devices with only a touch screen.
The example here is that there are multiple edittext boxes on the screen.
Textbox1 - 1234
Textbox2 - ABC
Textbox3 - BLANK
My app selects all text in the text box when it has focus, this is so the user can type over, or scan a barcode to replace it easily.
So Say user starts in Textbox1 and scans 1234 (barcode hits enter after scan, focus changed to Textbox2, the text "ABC" is already there AND my app selects it.
On a non-keyboard device, I hit the enter/next button on the on screen keyboard and it leaves the text there and goes to Textbox3.
On the physical keyboard device, if I hit enter in this textbox it clears the text and goes to the next field.
However, if I turn ON the virtual keyboard, on the physical keyboard device, AND even if I use IME.HideKeyboard to keep it hidden, the physical enter key now does NOT clear the text box when hitting enter.
Any ideas on the behavior difference and if I can remedy it without turning on the virtual keyboard?
Many thanks,
Chris