Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hyphens are stripped from barcode #4

Open
Wunja opened this issue Mar 9, 2018 · 1 comment
Open

Hyphens are stripped from barcode #4

Wunja opened this issue Mar 9, 2018 · 1 comment

Comments

@Wunja
Copy link

Wunja commented Mar 9, 2018

When scanning a bar code that includes hyphens, these characters are stripped out of the value pasted into the receiving field.
Bar codes based on Code 39 allow the following special characters: -, ., $, /, +, %, and space

@Glideh
Copy link
Owner

Glideh commented Mar 9, 2018

Characters are filtered here

if ((keycode >= 65 && keycode <= 90) ||
(keycode >= 97 && keycode <= 122) ||
(keycode >= 48 && keycode <= 57)

Feel free to PR additional chars or suggest a different way to filter those, maybe with a setting.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants