Skip to content

Support for different prompt types #24

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ray73864
Copy link

Have added support for date, email, number, and tel prompts in addition to the original password prompt.

Had to make it so that setSelectionRange would only happen if it was a password, text, or url input field otherwise it errors out.

Probably better ways to do some of it, but it works for my use case on a Honeywell CT60 Android barcode scanner.

…n prompt shows, had to make sure that setSelectionRange doesn't get run on anything but text, password, and url inputs
@coveralls
Copy link

coveralls commented Feb 28, 2020

Coverage Status

Coverage decreased (-1.1%) to 88.384% when pulling d01b545 on ray73864:master into 65f5586 on coderaiser:master.

@coderaiser
Copy link
Owner

Could you please run npm run fix:lint to fix lint errors and provide test for this code :). Is this code works on desktop browsers?

@ray73864
Copy link
Author

ray73864 commented Mar 7, 2020

Should work fine on desktop browsers too, the only difference with desktop browsers is they won't see a customised on-screen keyboard but it will still limit what can be put into the prompt input field.

As for tests, I have no clue how to do them, and looking at the test/smalltalk.js file, it's kinda way over my head :(

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

Successfully merging this pull request may close these issues.

3 participants