Listen to keypress in HTML/JavaScript on iOS/Safari with Bluetooth Scanner/Keyboard without having to focus a field

后端 未结 1 480
既然无缘
既然无缘 2021-02-06 03:46

I have the following setup:

  • iPad with Safari browser running a webb-application.
  • Bluetooth barcode-scanner connected/paired with the iPad.

相关标签:
1条回答
  • 2021-02-06 04:14

    I believe that with mobile Safari (and most other iOS mobile browsers), keypresses are only detectable by the web app when a form input is infocus. Your device (without an external keyboard) can't take keypress input without a form input being selected simply because the keyboard would not be up.

    0 讨论(0)
提交回复
热议问题