Creates and initializes a new VirtualKeyboard on the specified DOM element. This method is static and can be called without creating an instance of the class.
Namespace: MindFusion.Keyboard
File: VirtualKeyboard.js
JavaScript Copy Code |
---|
function create (element) |
Object. The DOM element that the keyboard should be attached to.
VirtualKeyboard. A VirtualKeyboard object that represents the newly created keyboard.
The following code creates a new JsKeyboard using an HTML Canvas element that was declared in a web page used by the application.
JavaScript Copy Code |
---|
var vk = VirtualKeyboard.create( document.getElementById("keyboard")); |