Keyboard Support

Contact and Search

Keyman.com Homepage

Header bottom

Keyman.com

Other versions
Version 17.0 (current version)Version 16.0Version 15.0Version 14.0Version 13.0Version 12.0Version 11.0Version 10.0

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().