Defines layout of keyboard keys.
Namespace: MindFusion.Keyboard
File: KeyboardLayout.js
JavaScript Copy Code |
---|
// class |
Use the KeyboardLayout class to load custom keyboard layouts. You create a custom keyboard layout with the VirtualKeyboardCreator tool that is shipped with the Js Keyboard library.
The following code creates a KeyboardLayout from numpadDef object. The numpadDef object represents the definition of the custom layout. It is found in the numpad.js file which you will receive when you save your custom layout created with the Keyboard creator tool. You are free to rename the object, if you wish.
JavaScript Copy Code |
---|
var layout = KeyboardLayout.create(numpadDef); |