Mobile Web Wearable Web

Input Device

Tizen enables you to manage input device keys.

The Input Device API is mandatory for both Tizen mobile and wearable profiles, which means that it is supported in all mobile and wearable devices. All mandatory APIs are supported on the Tizen Emulators.

The main features of the Input Device API include:

  • Gathering a list of supported keys

    You can get a list of all supported keys using the InputDeviceManager interface (in mobile and wearable applications).

  • Getting key information by its name

    You can gather information about the key by its name using the InputDeviceManager interface and InputDeviceKey object (in mobile and wearable applications).

  • Registering and unregistering key events

    When you want to react to Input Device key presses, register the applicable key using the InputDeviceManager interface. After registering the input device key, the application receives a DOM keyboard event when the key is pressed or released. When the events are no longer needed, unregister the key.

    The application cannot register the mandatory keys (ArrowLeft, ArrowRight, ArrowUp, ArrowDown, Enter, and Back).

The key names are listed in the DOM Level 3 KeyboardEvent key Values specification. The name attribute in the Input Device API is equal to the key value specified in the specification (the Media Controller Keys section is the most relevant to the Input Device API). If the specification does not contain an appropriate entry for the key, the Input Device API provides a device-specific name.

Go to top