Search
KeyboardLayout.create Method
See Also
 






Creates and initializes a new KeyboardLayout from the specified definition object.

Namespace: MindFusion.Keyboard
File: KeyboardLayout.js

 Syntax

JavaScript  Copy Code

function create (layoutDef)

 Parameters

layoutDef

A JavaScipt layout definition generated by Keyboard Creator tool.

 Return Value

A KeyboardLayout object.

 Remarks

Calling KeyboardLayout.create() is the right way to create a new custom KeyboardLayout object. The method takes as argument the numpadDef object defined in the numpad.js file exported by the VirtualKeyboardCreator tool.

 Example

JavaScript  Copy Code
var layout = KeyboardLayout.create(numpadDef);

 See Also