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

again: Open Keyboard programmatically #790

Open
xalexbo opened this issue Sep 14, 2020 · 1 comment
Open

again: Open Keyboard programmatically #790

xalexbo opened this issue Sep 14, 2020 · 1 comment

Comments

@xalexbo
Copy link

xalexbo commented Sep 14, 2020

key_alfa.txt

Hi Mottie, long post: I have a web page with a text field which is usually filled by a barcode reader, but I want to give choice to use a custom alpha keyboard, to be shown on request clicking a button.
Keyboard layout javascript lies on a .js file which is loaded on top of webpage - see attached file.
Following event doesn't work:
$('#icon').click(function() {
var kb = $('#alfa).getkeyboard();
kb.reveal();
});
debugger says "kb is undefined" and thus keyboard does not appear, looking at source page I saw keyboard layout js script is properly loaded and available. Where am I wrong?
Can you help me to make it work?
Another acceptable solution could be having both keyboard shown and text field being editable to allow barcode reader filling the field: do you have any clue on this matter?
Thanks !
Alex

@Mottie
Copy link
Owner

Mottie commented Sep 14, 2020

Hi @xalexbo!

Using getkeyboard only works after the keyboard has been initialized. Please make sure to initialize it, and set the openOn option to an empty string - this prevents the keyboard from opening on focus.

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