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

Set up keyboard with non-input elements #417

Closed
faboudib opened this issue Dec 9, 2015 · 1 comment
Closed

Set up keyboard with non-input elements #417

faboudib opened this issue Dec 9, 2015 · 1 comment

Comments

@faboudib
Copy link

faboudib commented Dec 9, 2015

First thanks for sharing your work. My request might be very specific as I'm using your plugin on a TV platform. My platform doesn't allow me to disable the native keyboard which pops up automatically on input fields (tried setting lockInput to true but it also doesn't work). Would it be possible to use your plugin on a div instead of an input somehow? This would allow me to override the native keyboard.

@Mottie
Copy link
Owner

Mottie commented Dec 9, 2015

Hi @faboudib!

To make the keyboard work you'll need a way to position a caret to allow inserting, deleting or text selection. That is only possible by using an input, textarea or content editable element. Sadly, this project does not currently support adding a keyboard to a content editable element (see #208 to follow progress on this enhancement). Anyway, I believe a div set as content editable will still open the native keyboard.

If you are using the latest version, try adding a readonly attribute to the input and see if the native keyboard still opens.

<input type="text" readonly="readonly">

@Mottie Mottie closed this as completed Jan 10, 2016
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