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 = {
'ALBANIAN': 'sq',
'ARABIC': 'ar',
'ARMENIAN_EASTERN': 'hy_east',
'ARMENIAN_WESTERN': 'hy_west',
'BASQUE': 'eu',
'BELARUSIAN': 'be',
'BOSNIAN': 'bs',
'BULGARIAN': 'bg',
'CATALAN': 'ca',
'CROATIAN': 'hr',
'CZECH': 'cs',
'CZECH_QWERTZ': 'cs_qwertz',
'ENGLISH': 'en',
'FINNISH': 'fi',
'GALICIAN': 'gl',
'GEORGIAN_QWERTY': 'ka_qwerty',
'GEORGIAN_TYPEWRITER': 'ka_typewriter',
'GERMAN': 'de',
'GREEK': 'el',
'HEBREW': 'he',
'HINDI': 'hi',
'HUNGARIAN_101': 'hu_101',
'KAZAKH': 'kk',
'KYRGYZ': 'ky_cyrl',
'MACEDONIAN': 'mk',
'MONGOLIAN_CYRILLIC': 'mn_cyrl',
'MONTENEGRIN': 'srp',
'PERSIAN': 'fa',
'POLISH': 'pl',
'ROMANI': 'rom',
'RUSSIAN': 'ru',
'SERBIAN_CYRILLIC': 'sr_cyrl',
'SERBIAN_LATIN': 'sr_latn',
'SLOVAK': 'sk',
'SLOVAK_QWERTY': 'sk_qwerty',
'SLOVENIAN': 'sl',
'SPANISH': 'es_es',
'THAI': 'th',
'TURKISH_F': 'tr_f',
'TURKISH_Q': 'tr_q',
'UKRAINIAN_101': 'uk_101',
'UZBEK_LATIN': 'uz_latn'
};