Search
KeyboardLayout Class
Remarks See Also
 






Defines layout of keyboard keys.

Namespace: MindFusion.Keyboard
File: KeyboardLayout.js

 Syntax

JavaScript  Copy Code

// class
KeyboardLayout.prototype = {}

 Remarks

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.

 Example

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

 Inheritance Hierarchy

 See Also