简体   繁体   中英

Tablet Android gt7800 with Scanner Barcode integrated - focus input

I'm working in a project where I need a barcode reader. I have an android tablet gt7800 which has a scanner barcode integrated. It works perfectly, but I always need to focus an input to write .

I'm okey with that and it's obvious, but the people who will use it they will not realize that they have to focus the input, and they'll think that it's not working.

The tablet has a 'plugin' for work (don't know the name, sorry) and has a button movable in all 'screens' (wherever you look at the tablet) which you press and runs the front scanner.

So, my question is: If there any way to catch the click event of that button of the tablet with javascript or jquery ? Or perhaps I'd have to create an android app in native code?

PS: Sorry for my English, I'll be happy to respond to any questions.

条形码扫描器应该像普通键盘一样工作,因此您可以尝试绑定到$(“body”)元素上的按键事件

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM