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