Instances of google.elements.keyboard.Keyboard are designed to control the keyboard settings on a set of textfields in your web page.
| Constructor | Description |
|---|---|
|
|
Creates a new
|
| Method | Return Type | Description |
|---|---|---|
|
|
google.elements.keyboard.LayoutCode | Gets the active keyboard layout for this Keyboard object. |
|
|
None |
Changes the keyboard layout for this Keyboard object.
Throws exception under the following case: layout is invalid. |
|
|
None |
Sets the visibility state for this Keyboard object.
|
|
|
Boolean | Returns a boolean indicating whether onscreen keyboard is visible for this Keyboard object. |
The google.elements.keyboard.LayoutCode enumeration provides a mapping from name constants to layout code. Note that layout code doesn't equal to language code. There could be multiple layouts, or input methods, for a single language.
var google.elements.keyboard.LayoutCode = {
ARABIC: 'ar',
ARMENIAN_EASTERN: 'hy_east',
ARMENIAN_WESTERN: 'hy_west',
BELARUSIAN: 'be',
BULGARIAN: 'bg',
CZECH: 'cs',
CZECH_QWERTZ: 'cs_qwertz',
ENGLISH: 'en',
GEORGIAN_QWERTY: 'ka_qwerty',
GEORGIAN_TYPEWRITER: 'ka_typewriter',
GREEK: 'el',
HEBREW: 'he',
HINDI: 'hi',
HUNGARIAN_101: 'hu_101',
KAZAKH: 'kk',
PERSIAN: 'fa',
POLISH: 'pl',
RUSSIAN: 'ru',
SLOVAK: 'sk',
SLOVAK_QWERTY: 'sk_qwerty',
SLOVENIAN: 'sl',
THAI: 'th',
TURKISH_F: 'tr_f',
TURKISH_Q: 'tr_q',
UKRAINIAN_101: 'uk_101'
};