Search
KeyboardLayout.addKey Method
See Also
 






Adds a new key with specified content and position to the layout.

Namespace: MindFusion.Keyboard
File: KeyboardLayout.js

 Syntax

JavaScript  Copy Code

function addKey (content, left, top, width, height)

 Parameters

content

A string containing the key's character.

left

A number specifying key's horizontal position.

top

A number specifying key's vertical position.

width

A number specifying key's width.

height

A number specifying key's height.

 Remarks

Use this method to add a new key to your custom KeyboardLayout. Use the method to add/remove keys dynamically or when you don't want to use the VirtualKeyboardLayout tool to create your custom keyboard.

 See Also