KeymanWeb 2.0 Initialization Options
The following options can be defined by the site designer in the initialization call to KeymanWeb.
Option name | Description | Default value |
---|---|---|
key | License or subscription key | (none) |
ui | (Desktop) user interface to be used | float |
root | KeymanWeb script folder URL | http://r.keymanweb.com/kmw20/ |
resources | UI image folder URL | [root]/resources |
fonts | List of embedded fonts required for OSK or keyboards | (none) |
attachControlsByDefault | Let all input controls have input remapped by KeymanWeb | true (false not yet implemented) |
unmappedKeyboardName | Normal keyboard language when keyboard mapping disabled | English |
defaultKeyboardHelp | KeymanWeb prompt message | Select a keyboard from the drop-down list |
controlDownColor | Active control key color in OSK | #e0e0e0 |
keyDownColor | Active key color in OSK | #c0c0ff |
keyHoverColor | Hovered key color in OSK | #e0e0ff |
All option values are strings, except for the ui option, which can be either a string or an object array containing named members. If the ui option is an object, one member must be name, and other members are specific to the ui. The only currently defined ui-specific option is position: 'right' for right-alignment of the "float" ui.