I am building a web app which includes scanning of QR codes using a bluetooth scanner. To get the data, the scanner behaves like a keyboard so the data it scans is ‘typed’ into an input field. I’ve made the input invisible and set it to have focus so it all works. However, mobile browsers insist on showing the on-screen keyboard because it’s a text field which has focus. If you close the keyboard, the field loses its focus so the scanner doesn’t work.
Can anyone help with preventing the keyboard from showing?
Many thanks.