D0301
HTML Application SDK  A1.8
Public Member Functions | Public Attributes | List of all members
KeySet Interface Reference

import"ApplicationManagerPlugin.idl";

Public Member Functions

void setValue ([in] Integer value, [in] Integer[] other_keys)
 

Public Attributes

readonly attribute Integer[] other_keys
 
readonly attribute Integer value
 

Detailed Description

This is a class that implements global KeySet object.

Member Function Documentation

void KeySet.setValue ( [in] Integer  value,
[in] Integer[]  other_keys 
)

Sets the value of the keyset which this DAE application requests to receive. It also reserves the back key to the application when included in other_keys. It should be noted that setValue() clears the previously set values and updates the reserved key list with the newly set value.

1  var key_list = [VK_CANCEL, VK_ENTER, VK_PAUSE, VK_HOME, VK_LEFT, VK_UP, VK_RIGHT, VK_DOWN, VK_HELP, VK_0, VK_1, VK_2, VK_3, VK_4, VK_5, VK_6, VK_7, VK_8, VK_9, VK_RED, VK_GREEN, VK_YELLOW, VK_BLUE, VK_POWER, VK_REWIND, VK_STOP, VK_PLAY, VK_RECORD, VK_FAST_FWD, VK_TRACK_PREV, VK_TRACK_NEXT, VK_CHANNEL_UP, VK_CHANNEL_DOWN, VK_DISPLAY_SWAP, VK_SCREEN_MODE_NEXT, VK_VOLUME_UP, VK_VOLUME_DOWN, VK_MUTE, VK_INFO, VK_GUIDE, VK_TELETEXT, VK_SUBTITLE, VK_BACK, VK_MENU, VK_PLAY_PAUSE];
2 
3  var keyReserve = function () {
4  var win = ApplicationManager.createWindow("key_set_win", 0);
5  win.keySet.setValue(0x400, key_list);
6 
7  var other_keys_str = "";
8  console.log("keyset value: " + win.keySet.value);
9  console.log("keyset other_keys:");
10  for (i = 0; i < (win.keySet.other_keys.length - 1); i++) {
11  console.log(win.keySet.other_keys[i]);
12  }
13 
14  ApplicationManager.destroyWindow(win);
15  }
Parameters
valueThe value of the keyset, RED: 0x1, GREEN: 0x2, YELLOW: 0x4, BLUE: 0x8, NAVIGATION (VK_UP, VK_DOWN, VK_LEFT, VK_RIGHT, VK_ENTER): 0x10, VCR (VK_PLAY, VK_PAUSE, VK_STOP, VK_NEXT, VK_PREV, VK_FAST_FWD, VK_REWIND, VK_PLAY_PAUSE): 0x20, SCROLL (VK_PAGE_UP, VK_PAGE_DOWN): 0x40, INFO: 0x80, NUMERIC: 0x100, ALPHABETIC: 0x200, OTHER (other_keys parameter): 0x400
other_keysIf the OTHER bit in the value property is set then this indicates those key events which are available to the browser which are not included in one of the constants defined in this class, If the OTHER bit in the value property is not set then this property is meaningless. The values are: VK_UNDEFINED, VK_CANCEL, VK_ENTER, VK_PAUSE, VK_HOME, VK_LEFT, VK_UP, VK_RIGHT, VK_DOWN, VK_HELP, VK_0, VK_1, VK_2, VK_3, VK_4, VK_5, VK_6, VK_7, VK_8, VK_9, VK_RED, VK_GREEN, VK_YELLOW, VK_BLUE, VK_POWER, VK_REWIND, VK_STOP, VK_PLAY, VK_RECORD, VK_FAST_FWD, VK_TRACK_PREV, VK_TRACK_NEXT, VK_CHANNEL_UP, VK_CHANNEL_DOWN, VK_DISPLAY_SWAP, VK_SCREEN_MODE_NEXT, VK_VOLUME_UP, VK_VOLUME_DOWN, VK_MUTE, VK_INFO, VK_GUIDE, VK_TELETEXT, VK_SUBTITLE, VK_BACK, VK_MENU, VK_PLAY_PAUSE, VENDOR_VK_DEVICE_EXIT : 658, VENDOR_VK_DEVICE_SEARCH : 659, VENDOR_VK_DEVICE_NETFLIX : 660, VENDOR_VK_DEVICE_LANGUAGE : 662, VENDOR_VK_DEVICE_PREVIOUS : 663

Member Data Documentation

readonly attribute Integer [] KeySet.other_keys

The other keys.

readonly attribute Integer KeySet.value

The value of the keyset.


The documentation for this interface was generated from the following file: