Hélas, no. I haven't found a way to bypass the logic :
-in order to catch the data sent by the barcode reader the field must have the focus
-and the focus displays the virtual keyboard. Always !
This could be solved in the future... We need a command to
hide the virtual keyboard.
That could be a solution
-focus on the field
-keyboard is displayed
-hide immediately the keyboard (with message openfield for instance or keyboardActivated)
But the best solution would be to make "android" compatible the commands keyDown , rawKeyDown etc.
Code: Select all
on keyDown theKey
if theKey is not a number then beep
else pass keyDown
end keyDown
This is what is use for desktop apps linked to a barcode scanner. No need to have a field with focus.
The characters "typed" by the barcode scanner are sent directly to the card, and intercepted with keyDown.