@cldmv/node-android-tv-remote 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.gitattributes ADDED
@@ -0,0 +1,8 @@
1
+ # Force LF endings for all relevant files
2
+ *.js text eol=lf
3
+ *.json text eol=lf
4
+ *.xml text eol=lf
5
+ *.html text eol=lf
6
+ *.css text eol=lf
7
+ *.md text eol=lf
8
+ *.txt text eol=lf
package/.prettierrc ADDED
@@ -0,0 +1,15 @@
1
+ {
2
+ "useTabs": true,
3
+ "tabWidth": 2,
4
+ "printWidth": 140,
5
+ "trailingComma": "none",
6
+ "quoteProps": "preserve",
7
+ "overrides": [
8
+ {
9
+ "files": "*.xml",
10
+ "options": {
11
+ "printWidth": 300
12
+ }
13
+ }
14
+ ]
15
+ }
package/README.md ADDED
@@ -0,0 +1,110 @@
1
+ # Android TV Remote Node Module
2
+
3
+ [Keyboard Keys](./docs/KEYBOARD_KEYS.md) | [Keycodes](./docs/KEYCODES.md)
4
+
5
+ ---
6
+
7
+ ## Table of Contents
8
+
9
+ - [Overview](#overview)
10
+ - [Installation](#installation)
11
+ - [Usage](#usage)
12
+ - [API](#api)
13
+ - [Supported Devices](#supported-devices)
14
+ - [Keyboard Keys](./docs/KEYBOARD_KEYS.md)
15
+ - [Keycodes](./docs/KEYCODES.md)
16
+
17
+ ---
18
+
19
+ ## Overview
20
+
21
+ A Node.js module for controlling Android TV devices via ADB. Supports sending keycodes, keyboard input, and remote control commands. Designed for compatibility with a wide range of Android TV devices, including Fire TV, Chromecast with Google TV, and more.
22
+
23
+ ## Installation
24
+
25
+ This module requires the Android Debug Bridge (ADB) binary to be installed and available in your system PATH.
26
+
27
+ ### Install ADB
28
+
29
+ #### Windows
30
+
31
+ 1. Download the [SDK Platform Tools for Windows](https://developer.android.com/studio/releases/platform-tools).
32
+ 2. Extract the ZIP file.
33
+ 3. Add the extracted folder to your system PATH (so you can run `adb` from any terminal).
34
+ 4. Test by running `adb version` in Command Prompt.
35
+
36
+ #### macOS
37
+
38
+ 1. Download the [SDK Platform Tools for Mac](https://developer.android.com/studio/releases/platform-tools).
39
+ 2. Extract the ZIP file.
40
+ 3. Move the extracted folder to a location like `/usr/local/bin` or add it to your PATH.
41
+ 4. Test by running `adb version` in Terminal.
42
+
43
+ #### Linux
44
+
45
+ 1. Download the [SDK Platform Tools for Linux](https://developer.android.com/studio/releases/platform-tools).
46
+ 2. Extract the ZIP file.
47
+ 3. Move the extracted folder to `/usr/local/bin` or add it to your PATH.
48
+ 4. You may also install via your package manager:
49
+ - Ubuntu/Debian: `sudo apt-get install android-tools-adb`
50
+ - Fedora/Red Hat: `sudo dnf install android-tools`
51
+ - CentOS/yum: `sudo yum install android-tools`
52
+ 5. Test by running `adb version` in your shell.
53
+
54
+ > **Note:** You must accept the ADB authorization prompt on your Android TV device the first time you connect.
55
+
56
+ ### Install the Node Module
57
+
58
+ ```sh
59
+ npm install android-tv-remote
60
+ ```
61
+
62
+ ## Usage
63
+
64
+ ```js
65
+ const createRemote = require("android-tv-remote");
66
+ const remote = createRemote({ ip: "192.168.1.100" });
67
+
68
+ // Connect
69
+ await remote.connect();
70
+
71
+ // Press Home
72
+ await remote.press.home();
73
+
74
+ // Type text
75
+ await remote.keyboard.text("hello world");
76
+
77
+ // Disconnect
78
+ await remote.disconnect();
79
+ ```
80
+
81
+ ## API
82
+
83
+ See [API documentation](#) for full details. Main methods:
84
+
85
+ - `connect()` / `disconnect()`
86
+ - `press.<key>()` / `press.long.<key>()`
87
+ - `keyboard.text(text)`
88
+ - `keyboard.key.<key>()` / `keyboard.key.<key>.keycode()`
89
+ - `keyboard.key.shift.<key>()` / `keyboard.key.shift.<key>.keycode()`
90
+ - `inputKeycode(code)`
91
+ - `handleSettings(mode, [overrideQuiet])`
92
+
93
+ ## Supported Devices
94
+
95
+ | Device | Supported | Native Remote Buttons |
96
+ | ------------------------ | --------- | ------------------------------------------- |
97
+ | Fire TV Stick | Yes | Home, Back, Menu, D-Pad, Play/Pause, Volume |
98
+ | Chromecast w/ Google TV | Yes | Home, Back, Assistant, D-Pad, Volume, Input |
99
+ | Nvidia Shield | Yes | Home, Back, D-Pad, Play/Pause, Volume |
100
+ | Roku (Android TV) | Partial | Home, Back, D-Pad, Play/Pause |
101
+ | Xiaomi Mi Box | Yes | Home, Back, D-Pad, Volume |
102
+ | Sony Bravia (Android TV) | Yes | Home, Back, D-Pad, Volume, Input |
103
+
104
+ See [Keyboard Keys](./docs/KEYBOARD_KEYS.md) and [Keycodes](./docs/KEYCODES.md) for full lists.
105
+
106
+ ---
107
+
108
+ ## License
109
+
110
+ MIT
@@ -0,0 +1,80 @@
1
+ # Keyboard Keys
2
+
3
+ [Back to Main README](../README.md) | [Keycodes](./KEYCODES.md)
4
+
5
+ ---
6
+
7
+ ## Table of Contents
8
+
9
+ - [Overview](#overview)
10
+ - [Keyboard Key List](#keyboard-key-list)
11
+ - [Supported Devices](#supported-devices)
12
+
13
+ ---
14
+
15
+ ## Overview
16
+
17
+ The `keyboard.key` and `keyboard.key.shift` APIs provide programmatic access to all keyboard keys, including letters, numbers, and special characters. These keys can be sent as text (where supported) or as keycodes (fallback).
18
+
19
+ - `keyboard.key.<key>()` — Sends the key as text if possible, otherwise as a keycode.
20
+ - `keyboard.key.<key>.keycode()` — Always sends the key as a keycode.
21
+ - `keyboard.key.shift.<key>()` — Sends the shifted version (e.g., uppercase letter or symbol).
22
+ - `keyboard.key.shift.<key>.keycode()` — Shifted key as keycode only.
23
+
24
+ ## Keyboard Key List
25
+
26
+ | Key Name | Description | Example | Shifted Example | Notes |
27
+ | -------- | -------------------- | ------------------ | ------------------------ | ----- |
28
+ | a | Lowercase letter 'a' | `keyboard.key.a()` | `keyboard.key.shift.a()` | |
29
+ | b | Lowercase letter 'b' | `keyboard.key.b()` | `keyboard.key.shift.b()` | |
30
+ | c | Lowercase letter 'c' | `keyboard.key.c()` | `keyboard.key.shift.c()` | |
31
+ | d | Lowercase letter 'd' | `keyboard.key.d()` | `keyboard.key.shift.d()` | |
32
+ | e | Lowercase letter 'e' | `keyboard.key.e()` | `keyboard.key.shift.e()` | |
33
+ | f | Lowercase letter 'f' | `keyboard.key.f()` | `keyboard.key.shift.f()` | |
34
+ | g | Lowercase letter 'g' | `keyboard.key.g()` | `keyboard.key.shift.g()` | |
35
+ | h | Lowercase letter 'h' | `keyboard.key.h()` | `keyboard.key.shift.h()` | |
36
+ | i | Lowercase letter 'i' | `keyboard.key.i()` | `keyboard.key.shift.i()` | |
37
+ | j | Lowercase letter 'j' | `keyboard.key.j()` | `keyboard.key.shift.j()` | |
38
+ | k | Lowercase letter 'k' | `keyboard.key.k()` | `keyboard.key.shift.k()` | |
39
+ | l | Lowercase letter 'l' | `keyboard.key.l()` | `keyboard.key.shift.l()` | |
40
+ | m | Lowercase letter 'm' | `keyboard.key.m()` | `keyboard.key.shift.m()` | |
41
+ | n | Lowercase letter 'n' | `keyboard.key.n()` | `keyboard.key.shift.n()` | |
42
+ | o | Lowercase letter 'o' | `keyboard.key.o()` | `keyboard.key.shift.o()` | |
43
+ | p | Lowercase letter 'p' | `keyboard.key.p()` | `keyboard.key.shift.p()` | |
44
+ | q | Lowercase letter 'q' | `keyboard.key.q()` | `keyboard.key.shift.q()` | |
45
+ | r | Lowercase letter 'r' | `keyboard.key.r()` | `keyboard.key.shift.r()` | |
46
+ | s | Lowercase letter 's' | `keyboard.key.s()` | `keyboard.key.shift.s()` | |
47
+ | t | Lowercase letter 't' | `keyboard.key.t()` | `keyboard.key.shift.t()` | |
48
+ | u | Lowercase letter 'u' | `keyboard.key.u()` | `keyboard.key.shift.u()` | |
49
+ | v | Lowercase letter 'v' | `keyboard.key.v()` | `keyboard.key.shift.v()` | |
50
+ | w | Lowercase letter 'w' | `keyboard.key.w()` | `keyboard.key.shift.w()` | |
51
+ | x | Lowercase letter 'x' | `keyboard.key.x()` | `keyboard.key.shift.x()` | |
52
+ | y | Lowercase letter 'y' | `keyboard.key.y()` | `keyboard.key.shift.y()` | |
53
+ | z | Lowercase letter 'z' | `keyboard.key.z()` | `keyboard.key.shift.z()` | |
54
+ | 0 | Digit '0' | `keyboard.key.0()` | `keyboard.key.shift.0()` | |
55
+ | 1 | Digit '1' | `keyboard.key.1()` | `keyboard.key.shift.1()` | |
56
+ | 2 | Digit '2' | `keyboard.key.2()` | `keyboard.key.shift.2()` | |
57
+ | 3 | Digit '3' | `keyboard.key.3()` | `keyboard.key.shift.3()` | |
58
+ | 4 | Digit '4' | `keyboard.key.4()` | `keyboard.key.shift.4()` | |
59
+ | 5 | Digit '5' | `keyboard.key.5()` | `keyboard.key.shift.5()` | |
60
+ | 6 | Digit '6' | `keyboard.key.6()` | `keyboard.key.shift.6()` | |
61
+ | 7 | Digit '7' | `keyboard.key.7()` | `keyboard.key.shift.7()` | |
62
+ | 8 | Digit '8' | `keyboard.key.8()` | `keyboard.key.shift.8()` | |
63
+ | 9 | Digit '9' | `keyboard.key.9()` | `keyboard.key.shift.9()` | |
64
+
65
+ > All other keys are keycodes. See [Keycodes](./KEYCODES.md) for the full list.
66
+
67
+ > **Note:** Not all Android TV devices support all keyboard keys as text input. Keycode fallback is used where possible.
68
+
69
+ ## Supported Devices
70
+
71
+ | Device | Keyboard Text Input | Keycode Fallback |
72
+ | ------------------------ | ------------------- | ---------------- |
73
+ | Fire TV Stick | Yes | Yes |
74
+ | Chromecast w/ Google TV | Yes | Yes |
75
+ | Nvidia Shield | Yes | Yes |
76
+ | Roku (Android TV) | Partial | Yes |
77
+ | Xiaomi Mi Box | Yes | Yes |
78
+ | Sony Bravia (Android TV) | Yes | Yes |
79
+
80
+ See [Keycodes](./KEYCODES.md) for the full set of keycodes available.
@@ -0,0 +1,55 @@
1
+ # Keycodes
2
+
3
+ [Back to Main README](../README.md) | [Keyboard Keys](./KEYBOARD_KEYS.md)
4
+
5
+ ---
6
+
7
+ ## Table of Contents
8
+
9
+ - [Overview](#overview)
10
+ - [Keycode List](#keycode-list)
11
+ - [Supported Devices](#supported-devices)
12
+
13
+ ---
14
+
15
+ ## Overview
16
+
17
+ The `press` API and `inputKeycode` method use Android keycodes to control the device. These keycodes map to physical or virtual buttons on Android TV remotes.
18
+
19
+ - `press.<key>()` — Sends the corresponding keycode for the remote key.
20
+ - `press.long.<key>()` — Sends a long-press for the remote key.
21
+ - `inputKeycode(code)` — Sends a raw Android keycode.
22
+
23
+ ## Keycode List
24
+
25
+ | Key Name | Keycode | Description | On Native Remote? | Notes |
26
+ | ---------- | ------- | ---------------------- | ----------------- | ---------------------- |
27
+ | home | 3 | Home button | Yes (most) | |
28
+ | back | 4 | Back button | Yes (most) | |
29
+ | dpadUp | 19 | D-Pad Up | Yes | |
30
+ | dpadDown | 20 | D-Pad Down | Yes | |
31
+ | dpadLeft | 21 | D-Pad Left | Yes | |
32
+ | dpadRight | 22 | D-Pad Right | Yes | |
33
+ | dpadCenter | 23 | D-Pad Center/OK/Select | Yes | |
34
+ | menu | 82 | Menu/Options | Some | |
35
+ | playPause | 85 | Play/Pause | Yes (some) | |
36
+ | volumeUp | 24 | Volume Up | Yes (some) | |
37
+ | volumeDown | 25 | Volume Down | Yes (some) | |
38
+ | volumeMute | 164 | Mute | Some | |
39
+ | input | 178 | Input/Source | Some | |
40
+ | ... | ... | ... | ... | See full keycodes.json |
41
+
42
+ > **Note:** The full list of keycodes is available in [keycodes.json](../src/data/keycodes.json).
43
+
44
+ ## Supported Devices
45
+
46
+ | Device | Remote Key Support | Notes |
47
+ | ------------------------ | ------------------ | ------------------------------------------- |
48
+ | Fire TV Stick | Most keys | Home, Back, D-Pad, Play/Pause, Volume |
49
+ | Chromecast w/ Google TV | Most keys | Home, Back, Assistant, D-Pad, Volume, Input |
50
+ | Nvidia Shield | Most keys | Home, Back, D-Pad, Play/Pause, Volume |
51
+ | Roku (Android TV) | Partial | Home, Back, D-Pad, Play/Pause |
52
+ | Xiaomi Mi Box | Most keys | Home, Back, D-Pad, Volume |
53
+ | Sony Bravia (Android TV) | Most keys | Home, Back, D-Pad, Volume, Input |
54
+
55
+ See [Keyboard Keys](./KEYBOARD_KEYS.md) for keyboard input support.
@@ -0,0 +1,45 @@
1
+ import js from "@eslint/js";
2
+ import globals from "globals";
3
+ import json from "@eslint/json";
4
+ import markdown from "@eslint/markdown";
5
+ import css from "@eslint/css";
6
+ import { defineConfig } from "eslint/config";
7
+
8
+ export default defineConfig([
9
+ {
10
+ files: ["**/*.{js,mjs,cjs}"],
11
+ plugins: { js },
12
+ extends: ["js/recommended"],
13
+ rules: {
14
+ "no-unused-vars": [
15
+ "error",
16
+ {
17
+ "argsIgnorePattern": "^_$",
18
+ "caughtErrorsIgnorePattern": "^_$",
19
+ "destructuredArrayIgnorePattern": "^_$",
20
+ "varsIgnorePattern": "^_$"
21
+ }
22
+ ]
23
+ }
24
+ },
25
+ { files: ["**/*.js"], languageOptions: { sourceType: "commonjs" } },
26
+ { files: ["**/*.{js,mjs,cjs}"], languageOptions: { globals: globals.node } },
27
+ {
28
+ files: ["**/test/**/*test.js"],
29
+ languageOptions: {
30
+ globals: {
31
+ beforeAll: true,
32
+ afterAll: true,
33
+ describe: true,
34
+ it: true,
35
+ expect: true,
36
+ test: true
37
+ }
38
+ }
39
+ },
40
+ { files: ["**/*.json"], plugins: { json }, language: "json/json", extends: ["json/recommended"] },
41
+ { files: ["**/*.jsonc"], plugins: { json }, language: "json/jsonc", extends: ["json/recommended"] },
42
+ { files: ["**/*.json5"], plugins: { json }, language: "json/json5", extends: ["json/recommended"] },
43
+ { files: ["**/*.md"], plugins: { markdown }, language: "markdown/gfm", extends: ["markdown/recommended"] },
44
+ { files: ["**/*.css"], plugins: { css }, language: "css/css", extends: ["css/recommended"] }
45
+ ]);
package/package.json ADDED
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "@cldmv/node-android-tv-remote",
3
+ "version": "1.0.0",
4
+ "description": "A Node.js library for controlling Android TV devices via ADB keycodes and text input.",
5
+ "main": "src/lib/android-tv-remote.js",
6
+ "scripts": {
7
+ "test": "jest",
8
+ "postinstall": "node scripts/postinstall.js"
9
+ },
10
+ "keywords": [
11
+ "android",
12
+ "tv",
13
+ "remote",
14
+ "adb",
15
+ "keycode",
16
+ "nodejs"
17
+ ],
18
+ "author": {
19
+ "name": "Shinrai",
20
+ "email": "git@cldmv.net",
21
+ "url": "https://cldmv.net"
22
+ },
23
+ "repository": {
24
+ "type": "git",
25
+ "url": "git+https://github.com/CLDMV/node-android-tv-remote.git"
26
+ },
27
+ "contributors": [
28
+ {
29
+ "name": "CLDMV",
30
+ "url": "https://github.com/CLDMV"
31
+ }
32
+ ],
33
+ "bugs": {
34
+ "url": "https://github.com/CLDMV/node-android-tv-remote/issues"
35
+ },
36
+ "homepage": "https://github.com/CLDMV/node-android-tv-remote#readme",
37
+ "license": "MIT",
38
+ "dependencies": {
39
+ "adbkit": "2.11.1"
40
+ },
41
+ "devDependencies": {
42
+ "jest": "^30.0.5"
43
+ }
44
+ }
@@ -0,0 +1,48 @@
1
+ /**
2
+ * Postinstall script to check for adb and print install instructions if missing.
3
+ */
4
+ const { execSync } = require("child_process");
5
+ const os = require("os");
6
+
7
+ function hasAdb() {
8
+ try {
9
+ execSync("adb version", { stdio: "ignore" });
10
+ return true;
11
+ } catch (e) {
12
+ return false;
13
+ }
14
+ }
15
+
16
+ if (hasAdb()) {
17
+ console.log("ADB is installed and available in your PATH.");
18
+ process.exit(0);
19
+ }
20
+
21
+ console.log("\nADB is not installed or not in your PATH.");
22
+ console.log("Follow these instructions to install ADB:");
23
+
24
+ const platform = os.platform();
25
+ if (platform === "win32") {
26
+ console.log("\nWindows:");
27
+ console.log("1. Download the SDK Platform Tools for Windows: https://developer.android.com/studio/releases/platform-tools");
28
+ console.log("2. Extract the ZIP file.");
29
+ console.log("3. Add the extracted folder to your system PATH.");
30
+ console.log('4. Test by running "adb version" in Command Prompt.');
31
+ } else if (platform === "darwin") {
32
+ console.log("\nmacOS:");
33
+ console.log("1. Download the SDK Platform Tools for Mac: https://developer.android.com/studio/releases/platform-tools");
34
+ console.log("2. Extract the ZIP file.");
35
+ console.log("3. Move the extracted folder to /usr/local/bin or add it to your PATH.");
36
+ console.log('4. Test by running "adb version" in Terminal.');
37
+ } else if (platform === "linux") {
38
+ console.log("\nLinux:");
39
+ console.log("1. Download the SDK Platform Tools for Linux: https://developer.android.com/studio/releases/platform-tools");
40
+ console.log("2. Extract the ZIP file.");
41
+ console.log("3. Move the extracted folder to /usr/local/bin or add it to your PATH.");
42
+ console.log("4. Or install via your package manager:");
43
+ console.log(" - Ubuntu/Debian: sudo apt-get install android-tools-adb");
44
+ console.log(" - Fedora/Red Hat: sudo dnf install android-tools");
45
+ console.log(" - CentOS/yum: sudo yum install android-tools");
46
+ console.log('5. Test by running "adb version" in your shell.');
47
+ }
48
+ console.log("\nYou must accept the ADB authorization prompt on your Android TV device the first time you connect.");
@@ -0,0 +1,270 @@
1
+ {
2
+ "unknown": 0,
3
+ "softLeft": 1,
4
+ "softRight": 2,
5
+ "home": 3,
6
+ "back": 4,
7
+ "call": 5,
8
+ "endcall": 6,
9
+ "0": 7,
10
+ "1": 8,
11
+ "2": 9,
12
+ "3": 10,
13
+ "4": 11,
14
+ "5": 12,
15
+ "6": 13,
16
+ "7": 14,
17
+ "8": 15,
18
+ "9": 16,
19
+ "star": 17,
20
+ "pound": 18,
21
+ "dpadUp": 19,
22
+ "dpadDown": 20,
23
+ "dpadLeft": 21,
24
+ "dpadRight": 22,
25
+ "dpadCenter": 23,
26
+ "volumeUp": 24,
27
+ "volumeDown": 25,
28
+ "power": 26,
29
+ "camera": 27,
30
+ "clear": 28,
31
+ "a": 29,
32
+ "b": 30,
33
+ "c": 31,
34
+ "d": 32,
35
+ "e": 33,
36
+ "f": 34,
37
+ "g": 35,
38
+ "h": 36,
39
+ "i": 37,
40
+ "j": 38,
41
+ "k": 39,
42
+ "l": 40,
43
+ "m": 41,
44
+ "n": 42,
45
+ "o": 43,
46
+ "p": 44,
47
+ "q": 45,
48
+ "r": 46,
49
+ "s": 47,
50
+ "t": 48,
51
+ "u": 49,
52
+ "v": 50,
53
+ "w": 51,
54
+ "x": 52,
55
+ "y": 53,
56
+ "z": 54,
57
+ "comma": 55,
58
+ "period": 56,
59
+ "altLeft": 57,
60
+ "altRight": 58,
61
+ "shiftLeft": 59,
62
+ "shiftRight": 60,
63
+ "tab": 61,
64
+ "space": 62,
65
+ "sym": 63,
66
+ "explorer": 64,
67
+ "envelope": 65,
68
+ "enter": 66,
69
+ "del": 67,
70
+ "grave": 68,
71
+ "minus": 69,
72
+ "equals": 70,
73
+ "leftBracket": 71,
74
+ "rightBracket": 72,
75
+ "backslash": 73,
76
+ "semicolon": 74,
77
+ "apostrophe": 75,
78
+ "slash": 76,
79
+ "at": 77,
80
+ "num": 78,
81
+ "headsethook": 79,
82
+ "focus": 80,
83
+ "plus": 81,
84
+ "menu": 82,
85
+ "notification": 83,
86
+ "search": 84,
87
+ "playPause": 85,
88
+ "stop": 86,
89
+ "next": 87,
90
+ "previous": 88,
91
+ "rewind": 89,
92
+ "fastForward": 90,
93
+ "mute": 91,
94
+ "pageUp": 92,
95
+ "pageDown": 93,
96
+ "pictsymbols": 94,
97
+ "switchCharset": 95,
98
+ "buttonA": 96,
99
+ "buttonB": 97,
100
+ "buttonC": 98,
101
+ "buttonX": 99,
102
+ "buttonY": 100,
103
+ "buttonZ": 101,
104
+ "buttonL1": 102,
105
+ "buttonR1": 103,
106
+ "buttonL2": 104,
107
+ "buttonR2": 105,
108
+ "buttonThumbl": 106,
109
+ "buttonThumbr": 107,
110
+ "buttonStart": 108,
111
+ "buttonSelect": 109,
112
+ "buttonMode": 110,
113
+ "escape": 111,
114
+ "forward": 125,
115
+ "mediaPlay": 126,
116
+ "mediaPause": 127,
117
+ "mediaClose": 128,
118
+ "mediaEject": 129,
119
+ "mediaRecord": 130,
120
+ "f1": 131,
121
+ "f2": 132,
122
+ "f3": 133,
123
+ "f4": 134,
124
+ "f5": 135,
125
+ "f6": 136,
126
+ "f7": 137,
127
+ "f8": 138,
128
+ "f9": 139,
129
+ "f10": 140,
130
+ "f11": 141,
131
+ "f12": 142,
132
+ "numLock": 143,
133
+ "numpad0": 144,
134
+ "numpad1": 145,
135
+ "numpad2": 146,
136
+ "numpad3": 147,
137
+ "numpad4": 148,
138
+ "numpad5": 149,
139
+ "numpad6": 150,
140
+ "numpad7": 151,
141
+ "numpad8": 152,
142
+ "numpad9": 153,
143
+ "numpadDivide": 154,
144
+ "numpadMultiply": 155,
145
+ "numpadSubtract": 156,
146
+ "numpadAdd": 157,
147
+ "numpadDot": 158,
148
+ "numpadComma": 159,
149
+ "numpadEnter": 160,
150
+ "numpadEquals": 161,
151
+ "numpadLeftParen": 162,
152
+ "numpadRightParen": 163,
153
+ "volumeMute": 164,
154
+ "info": 165,
155
+ "channelUp": 166,
156
+ "channelDown": 167,
157
+ "zoomIn": 168,
158
+ "zoomOut": 169,
159
+ "tv": 170,
160
+ "window": 171,
161
+ "guide": 172,
162
+ "dvr": 173,
163
+ "bookmark": 174,
164
+ "captions": 175,
165
+ "settings": 176,
166
+ "tvPower": 177,
167
+ "tvInput": 178,
168
+ "stbPower": 179,
169
+ "stbInput": 180,
170
+ "avrPower": 181,
171
+ "avrInput": 182,
172
+ "progRed": 183,
173
+ "progGreen": 184,
174
+ "progYellow": 185,
175
+ "progBlue": 186,
176
+ "appSwitch": 187,
177
+ "button1": 188,
178
+ "button2": 189,
179
+ "button3": 190,
180
+ "button4": 191,
181
+ "button5": 192,
182
+ "button6": 193,
183
+ "button7": 194,
184
+ "button8": 195,
185
+ "button9": 196,
186
+ "button10": 197,
187
+ "button11": 198,
188
+ "button12": 199,
189
+ "button13": 200,
190
+ "button14": 201,
191
+ "button15": 202,
192
+ "button16": 203,
193
+ "languageSwitch": 204,
194
+ "mannerMode": 205,
195
+ "3dMode": 206,
196
+ "contacts": 207,
197
+ "calendar": 208,
198
+ "music": 209,
199
+ "calculator": 210,
200
+ "zenkakuHankaku": 211,
201
+ "eisu": 212,
202
+ "muhenkan": 213,
203
+ "henkan": 214,
204
+ "kana": 215,
205
+ "assist": 219,
206
+ "brightnessDown": 220,
207
+ "brightnessUp": 221,
208
+ "mediaAudioTrack": 222,
209
+ "sleep": 223,
210
+ "wakeup": 224,
211
+ "pairing": 225,
212
+ "mediaTopMenu": 226,
213
+ "11": 227,
214
+ "12": 228,
215
+ "lastChannel": 229,
216
+ "tvDataService": 230,
217
+ "voiceAssist": 231,
218
+ "tvRadioService": 232,
219
+ "tvTeletext": 233,
220
+ "tvNumberEntry": 234,
221
+ "tvTerrestrialAnalog": 235,
222
+ "tvTerrestrialDigital": 236,
223
+ "tvSatellite": 237,
224
+ "tvSatelliteBs": 238,
225
+ "tvSatelliteCs": 239,
226
+ "tvSatelliteService": 240,
227
+ "tvNetwork": 241,
228
+ "tvAntennaCable": 242,
229
+ "tvInputHdmi1": 243,
230
+ "tvInputHdmi2": 244,
231
+ "tvInputHdmi3": 245,
232
+ "tvInputHdmi4": 246,
233
+ "tvInputComposite1": 247,
234
+ "tvInputComposite2": 248,
235
+ "tvInputComponent1": 249,
236
+ "tvInputComponent2": 250,
237
+ "tvInputVga1": 251,
238
+ "tvAudioDescription": 252,
239
+ "tvAudioDescriptionMixUp": 253,
240
+ "tvAudioDescriptionMixDown": 254,
241
+ "tvZoomMode": 255,
242
+ "tvContentsMenu": 256,
243
+ "tvMediaContextMenu": 257,
244
+ "tvTimerProgramming": 258,
245
+ "help": 259,
246
+ "navigatePrevious": 260,
247
+ "navigateNext": 261,
248
+ "navigateIn": 262,
249
+ "navigateOut": 263,
250
+ "stemPrimary": 264,
251
+ "stem1": 265,
252
+ "stem2": 266,
253
+ "stem3": 267,
254
+ "dpadUpLeft": 268,
255
+ "dpadDownLeft": 269,
256
+ "dpadUpRight": 270,
257
+ "dpadDownRight": 271,
258
+ "mediaSkipForward": 272,
259
+ "mediaSkipBackward": 273,
260
+ "mediaStepForward": 274,
261
+ "mediaStepBackward": 275,
262
+ "softSleep": 276,
263
+ "cut": 277,
264
+ "copy": 278,
265
+ "paste": 279,
266
+ "systemNavigationUp": 280,
267
+ "systemNavigationDown": 281,
268
+ "systemNavigationLeft": 282,
269
+ "systemNavigationRight": 283
270
+ }