title: How to catch input on document[keypress] on window in javascript from Zebra mc330m scanner?
body: <p>I configured the scanner to send Enter at the end of the input and js reads it correctly but the other characters are lost.</p>
  
  <p>I have tried to decode the input characters with <strong>event.keyCode, event.which, event.charCode</strong> and nothing works. If I attach it to normal input it works.
  It also works in the browser address bar (chrome). But when I attach it to the document['onkeypress'] it doesn't read the characters.</p>
  
  <p>I tried Martin Orth solution from here: <a href="https://developer.zebra.com/thread/35513" rel="nofollow noreferrer">https://developer.zebra.com/thread/35513</a>
  but I couldn't make it work I even don't know if it's the same scanner.</p>
  
  <p>From here I understood that the scanner is sending ASCII characters and javascript has no mechanizm to read them?
  <a href="https://developer.zebra.com/thread/34536" rel="nofollow noreferrer">https://developer.zebra.com/thread/34536</a></p>
  
  <p>If anyone knows the solution to this problem, help is highly appreciated. I prefer with js/jquery if it is possible at all.</p>