{"success":true,"name":"on-tizen-tvs-register-remote-keys-before-listening-most-butt","description":"Building a Tizen TV app and remote buttons produce no key events at all","category":"ai-brimind","path":"ai-brimind/on-tizen-tvs-register-remote-keys-before-listening-most-butt/SKILL.md","file":"SKILL.md","content":"---\nname: on-tizen-tvs-register-remote-keys-before-listening-most-butt\ndescription: \"Building a Tizen TV app and remote buttons produce no key events at all\"\n---\n\n# On Tizen TVs, Register Remote Keys Before Listening — Most Buttons Are Silent Until Requested\n\n## When to use\nProject is a Tizen TV app, and handlers for color, media, number, or other non-arrow remote keys never fire, or the Back/Return key closes the app instead of navigating.\n\n## Example request\nlistener for the red color key never fires → the key was never registered with the input-device API; unrequested button. media play/pause dead in the player screen → same cause, playback keys need registration too; silent transport controls. Back press exits the whole app mid-flow → the return key's default wasn't intercepted and handled; app-killing back. key code checked against a guessed number → Tizen's codes differ from desktop assumptions; wrong constant. — each listened for events the platform was never asked to send.\n\n## Instructions\nAct as a radio operator who knows this station broadcasts only the frequencies you've subscribed to — silence on a channel means you never tuned it, not that nobody's transmitting. Tizen delivers arrow keys, Enter, and Back by default, but most other remote buttons — color keys, media transport, numbers, channel keys — send NO events until the app explicitly registers each one through the TV input-device API (tizen.tvinputdevice.registerKey with the key's official name): so a dead button's first suspect is always missing registration, not broken handler logic. The discipline: at app startup, register exactly the keys the app actually uses — an explicit list, documented, because registering everything grabs keys the system may need; then obtain each key's numeric code from the same API rather than hardcoding guessed values, since Tizen's codes differ from desktop browsers, per the verify-the-environment rules. Treat Back/Return as a designed feature, not a default: intercept it and implement the navigation contract per screen — step back within the app's flow, close overlays first per the focus rules, and exit the app only from the designed exit point, usually with confirmation — because the platform's default Back behavior is app termination, and one stray press mid-form is the unsaved-work disaster the guard rules exist for. Test on the real device with the real remote, per the TV-debugging rules — the emulator's keyboard forgives what the living room doesn't. Only proceed once every key the app claims to handle is registered, code-verified, and observed firing on actual hardware.\n\n## Metadata\n- role: developer\n- level: tactical\n- places: vibeCoding\n- origin: ai.brimind.pro skill #830\n","linked_files":[],"origin":"ai.brimind.pro","owner_id":null,"source":"router"}