In this example, a simulated webmail form, the default and permissible keyboard for each control is managed by the web page. We use the automatic mode for simplicity of demonstration. We also link to the CDN for KeymanWeb in this example.
Include the following script in the HEAD of your page:
Also include the following HTML code:
Note that in this example we disabled the first element (
document.f.address) by API call. A later API
call can re-enable KeymanWeb for this control should it fit the page's design. Alternatively, this can be done by
instead adding the class
'kmw-disabled' to the control. This will
permanently block KeymanWeb from handling its input.
loadKeyboards() function used by this page may be found here.
On disabling controls:
On setting the keyboard for a single control: