Keyboard Support

Contact and Search

Keyman.com Homepage

Header bottom

Keyman.com

Other versions
Version 17.0Version 16.0 (current version)Version 15.0Version 14.0Version 13.0Version 12.0Version 11.0Version 10.0Version 2.0 (home page)Version 1.0 (home page)

On this page

registerStub (KRS)

Summary

Registers the keyboard stub or returns true if already registered.

Syntax

keyman.interface.registerStub(Pstub);

or

KeymanWeb.KRS(Pstub); // Shorthand

Parameters

Pstub
Type: Object
A keyboard stub object representing the keyboard's basic lookup parameters.

Return Value

optional number
1 if the keyboard is preregistered, otherwise null.

Description

Note that this only registers the stub with KeymanWeb, allowing it to later request the keyboard from the server or filesystem upon demand in order to complete the linking process.

The keyman.interface.registerStub function is typically called on the user's behalf by the keyman.addKeyboards() function.