Creates and initializes a new KeyboardLayout from the specified definition object.
Namespace: MindFusion.Keyboard
Assembly: KeyboardLayout.js
SyntaxJavaScript
Copy Code
|
|---|
function create (layoutDef) |
A JavaScipt layout definition generated by Keyboard Creator tool.
A KeyboardLayout object.
RemarksCalling 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.
ExampleJavaScript
Copy Code
|
|---|
| var layout = KeyboardLayout.create(numpadDef); |
See Also