Skip to content

docs: correct Tizen key registration and list TV remote key codes - #254

Open
zz-plant wants to merge 1 commit into
NoriginMedia:mainfrom
zz-plant:docs/tv-remote-keys
Open

zz-plant wants to merge 1 commit into
NoriginMedia:mainfrom
zz-plant:docs/tv-remote-keys

Conversation

@zz-plant

@zz-plant zz-plant commented Nov 5, 2026

Copy link
Copy Markdown

The Tizen section of docs/guides/key-mapping.md told readers to call tizen.tvinputdevice.registerKey for the arrow keys and Enter. Samsung's TVInputDevice reference says: "An application cannot register the mandatory keys (ArrowLeft, ArrowRight, ArrowUp, ArrowDown, Enter, Back)." Tizen delivers those six keys without registration.

Changes, docs only (no changeset needed):

  • Tizen: the section now says the six mandatory keys need no registration and cannot be registered, and the example registers MediaPlayPause and ColorF0Red instead. Adds Samsung's key code table for Back (10009), the media keys and the colour keys.
  • webOS: adds LG's key codes for Back (461), the colour keys (403–406) and the media keys.
  • New "Back and Media Keys" section: the key map covers only left, right, up, down and enter, and the web adapter ignores other keys, so an app handles Back in its own keydown listener. Includes a short example.
  • Removed the two setKeyMap examples that repeated the default key map.

Sources are linked in the guide: Samsung's Remote Control guide and TVInputDevice API reference, and LG's Magic Remote guide.

npm run prettier, npm run lint, npm run build and npm test pass.

🤖 Generated with Claude Code

The Tizen section told readers to call registerKey for the arrow keys
and Enter. Samsung's TVInputDevice reference says an application cannot
register the mandatory keys (ArrowLeft, ArrowRight, ArrowUp, ArrowDown,
Enter, Back); they are delivered without registration. The section now
says that, and shows registration for a media and a colour key instead.

Adds the key codes from Samsung's Remote Control guide (Back 10009,
media keys, colour keys) and LG's Magic Remote guide (Back 461, colour
and media keys), and a section showing that keys outside the key map,
such as Back, reach the app's own keydown listener.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@zz-plant
zz-plant requested a review from a team as a code owner November 5, 2026 18:35
@changeset-bot

changeset-bot Bot commented Nov 5, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 05e9787

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 5, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-05T18:38:22.940156Z 05e9787 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant