Keyboard Support

Contact and Search

Keyman.com Homepage

Header bottom

Keyman.com

Other versions
Version 17.0 (home page)Version 16.0 (home page, current version)Version 15.0 (home page)Version 14.0Version 13.0Version 12.0Version 11.0Version 10.0Version 2.0Version 1.0 (home page)

On this page

BuildVisualKeyboard

Summary

Create a copy of the OSK for embedding in documentation or help page.

Syntax

keyman.osk.BuildVisualKeyboard(keyboardID, staticFlag, layoutFormFactor, layerID)

Parameters

keyboardID
Type: string
Identifying name of the keyboard.
staticFlag
Type: number
Deprecated parameter; should be set to 1.
layoutFormFactor
Type: string optional
A string describing the layout to use for the generated keyboard. Should be one of the following:
  • 'desktop'
  • 'phone'
  • 'tablet'
Defaults to 'desktop'.
layerID
Type: string|number optional
Name or index of the layer to be shown. If not specified, defaults to 'default', the base layer.

Return Value

Element
A non-interactive DIV object will filled keyboard layer content.

Description

Generates a non-interactive <div> element with the complete structure of the specified layer of an on-screen keyboard (OSK) that the user can then utilize for documentation or other purposes.