Skip to content
This repository has been archived by the owner on Jul 16, 2022. It is now read-only.
/ jbarcode Public archive

This plugin allow to catching barcode inputs without focusing any text area on your website and if a text element is already focused, this plugin prevents input characters until the input sequence is finished, after all if it is a barcode sequence then invokes a function that you give to it.

License

Notifications You must be signed in to change notification settings

veysiertekin/jbarcode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 

Repository files navigation

jbarcode

This plugin allow to catching barcode inputs without focusing any text area on your website and if a text element is already focused, this plugin prevents input characters, after the input sequence is finished, calls a function that you give to it!

Visit plugin home page: http://veysiertekin.github.io/jbarcode

 

What is this for?

Imagine that you have a store (grocery, computer parts etc), and you have a barcode reader machine (like Barcode Scanners - Amazon ).

Basically after you have added this plugin into your website and you have scanned a barcode with barcode scanner, it will catch the changes and trigger a function.

No matter focussed on a text field or not! It will detect barcode input from speed of the key inputs. If it decides that is a barcode reader input it will not paste on the text field even if it focussed!

Barcode scanners basically are keyboard inputs, but they type faster than humans!

How it distinguish keyboard input from humans?

It uses a computer algorithm used in CPUs - Branch Prediction. If input is a different source (branch) by tracking changes, it activates another functionality.

About

This plugin allow to catching barcode inputs without focusing any text area on your website and if a text element is already focused, this plugin prevents input characters until the input sequence is finished, after all if it is a barcode sequence then invokes a function that you give to it.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published