On 23.07.2012 07:11, Brian L. Matthews wrote:
On 7/22/12 8:43 PM, Prakash Ranganthan wrote:
Hi friends i tried blocking keyboard input but it also blocks barcode input any idea how to proceed with blocking only keyboard input in textbox and allowing barcode input.
The barcode readers I've used just generate keystrokes, so as far as the browser's concerned, it's all keystrokes. However, the keystrokes from the reader usually come quickly and consistently, so maybe you could measure the time between keystrokes and differentiate that way.
Why would you want to block the keyboard though? Not only is the mechanism of sending the digits the same (emulating keyboard), they keyboard also serves as an alternative when a barcode cannot be read by the scanner.

--
Klaus Johannes Rusch
[email protected]
http://klausrusch.atmedia.net/

--
You received this message because you are subscribed to the Google Groups 
"greasemonkey-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/greasemonkey-users?hl=en.

Reply via email to