1 Reply Latest reply on May 2, 2017 6:43 AM by Darryn Campbell

    TC510K scanner input lost when selecting and deselecting input field

    Carl Klavus

      A simple web app page that logs every time it takes input from the tc510k scanner (configured to give carriage return as action key)

      <!DOCTYPE html>
      <html>
        <head>
             <script src="lib/jquery/jquery.min.js"></script>
        </head>
        <body>
        <script>
              $(document).ready(function () {

                   $(document).keypress(function (e) {

                        console.log("input");
                    });
              });
         </script>
        <form action="">
              Form example name: <input type="text" name="fname"><br>
        </form>
        </body>
      </html>

      Steps to reproduce.

      1) Open browser and go to webpage. (tested with default browser, chrome and app webview)

      2) Scan barcode -> console will log "input" (as expected)
      3) Manually select input field -> selected input field

      4) Manually click outside input field -> deselected input field

      5) scan barcode -> NO LOG (should log "input")

      No input comes from the scanner until user selects something else on the mobile device and then go back to the webbrowser.

       

      Any idea why this happends?