Skip to main content

DLKeyboardMgr

Summary

The DLKeyboardMgr namespace handles the configuration and use of the physical triggers. The interface described here is found in dl_keyboard.js.

Functions

FunctionDescription
enableTriggersEnable/disable all physical triggers on the device.
showSoftKeyboardShow/Hide the soft keyboard.

Constants

ConstantsDescription
DL_KEYBOARD_MGR_VERThe version of DLKeyboardMgr.

Functions

enableTriggers

enableTriggers(enable: boolean): boolean

Enable/disable all physical triggers on the device.

Parameters

  • enable: Set true to enable all triggers, false to disable them.

Returns

True if the trigger changes were successful.

Example

if (!DLKeyboardMgr.enableTriggers(false)) {
alert("Error disabling all triggers.");
}

showSoftKeyboard

showSoftKeyboard(show: boolean): boolean

Show/Hide the soft keyboard.

Parameters

  • show: Set true to show the soft keyboard, false to hide it.

Returns

True if the keyboard operation was accepted.

Example

if (!DLKeyboardMgr.showSoftKeyboard(true)) {
alert("Error showing the soft keyboard.");
}

Constants

DL_KEYBOARD_MGR_VER

The version of the DLKeyboardMgr.