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

Multiple keyboard sizes on one page #378

Closed
12Arjan opened this issue Aug 12, 2015 · 3 comments
Closed

Multiple keyboard sizes on one page #378

12Arjan opened this issue Aug 12, 2015 · 3 comments

Comments

@12Arjan
Copy link

12Arjan commented Aug 12, 2015

I have a page with multiple inputs.
One is using the numpad layout and the other is using the qwerty layout.
I would like to have the numpad a larger font-size than the querty layout, is that possible? And if yes, how?

@Mottie
Copy link
Owner

Mottie commented Aug 12, 2015

Hi @12Arjan!

When the input/textarea has an ID assigned, the keyboard popup will get that same ID plus "_keyboard" added to the end (demo):

So this input:

<input id="numpad" type="text" />

will get a virtual keyboard with an ID of numpad_keyboard

<div id="numpad_keyboard" class="ui-keyboard" role="textbox">
   ...
</div>

So add css to target the specific keyboard:

#numpad_keyboard {
    font-size: 1.6em;
}

@Mottie
Copy link
Owner

Mottie commented Aug 12, 2015

Oh, and if you want to change the _keyboard id suffix, use the following javascript:

$.keyboard.css.idSuffix = '_virtual_keyboard';

@12Arjan
Copy link
Author

12Arjan commented Aug 12, 2015

Thank you very much for your explanation!

@12Arjan 12Arjan closed this as completed Aug 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants