Skip to content

Commit

Permalink
feat: document keys
Browse files Browse the repository at this point in the history
  • Loading branch information
reisxd committed Apr 15, 2024
1 parent 19cf4c9 commit 63833aa
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions docs/MODULES.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ The format is pretty same as a normal package.json file, but with some differenc

`main`: The main file of the mods module. Required if `packageType` is `mods`.

`keys`: The keys that should be registered using the [TVInputDevice](https://developer.samsung.com/smarttv/develop/api-references/tizen-web-device-api-references/tvinputdevice-api.html) API. Not required.

Here's an example mods module:
```json
{
Expand Down
2 changes: 1 addition & 1 deletion tizenbrew-app/TizenBrew/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@
var keys = selectedItem.getAttribute("data-keys");
if (appPath.startsWith("http")) {
if (keys.length > 0) {
var keys = selectedItem.getAttribute("data-keys").split(',');
keys = selectedItem.getAttribute("data-keys").split(',');
for (var i = 0; i < keys.length; i++) {
tizen.tvinputdevice.registerKey(keys[i]);
}
Expand Down

0 comments on commit 63833aa

Please sign in to comment.