Adds a new key with specified content and position to the layout.
Namespace: MindFusion.Keyboard
File: KeyboardLayout.js
JavaScript Copy Code |
---|
function addKey (content, left, top, width, height) |
A string containing the key's character.
A number specifying key's horizontal position.
A number specifying key's vertical position.
A number specifying key's width.
A number specifying key's height.
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.