Keyboard Support

Contact and Search

Keyman.com Homepage

Header bottom

Keyman.com

Other versions
Version 13.0 (current release)Version 12.0Version 11.0Version 10.0Version 2.0 (home page)Version 1.0 (home page)

On this page

getKeyboardForControl

Summary

Obtain the keyboard set for a specific control, if it exists.

Syntax

keyman.getKeyboardForControl(Pelem);

Parameters

Pelem
Type: Element
An HTML input control.

Return Value

string|null
If the control has independent keyboard settings, returns the ID (internal name) of a keyboard. Otherwise, returns null.

Description

This function is useful for determining when a control has independently-managed keyboard settings within KeymanWeb. Note that it will return null otherwise, even if there is an active keyboard within KeymanWeb.

See also keyman.setKeyboardForControl().

Contrast with keyman.getActiveKeyboard().