Skip to content

keymapping: add descriptions for keymappings and OK button#166

Open
denisyuji wants to merge 1 commit intordkcentral:developfrom
denisyuji:keymapping-ok
Open

keymapping: add descriptions for keymappings and OK button#166
denisyuji wants to merge 1 commit intordkcentral:developfrom
denisyuji:keymapping-ok

Conversation

@denisyuji
Copy link

@denisyuji denisyuji commented Dec 22, 2025

  • Add mapping to the OK button
  • Added descriptions for new keymappings
  • Included details for YouTube button, Info overlay, Channel up, Channel down, Back, and OK/Select
  • The description field is ignored by the JSON parser but serve as inline documentation in the JSON

- Add mapping to the OK button
- Added descriptions for new keymappings
- Included details for YouTube button, Info overlay,
  Channel up, Channel down, Back, and OK/Select
- Descriptions serve as inline documentation in the JSON
Copilot AI review requested due to automatic review settings December 22, 2025 21:52
@github-actions
Copy link

github-actions bot commented Dec 22, 2025

All contributors have signed the CLA ✍️ ✅
Posted by the CLA Assistant Lite bot.

@denisyuji
Copy link
Author

I have read the CLA Document and I hereby sign the CLA

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR enhances the keymapping configuration file by adding descriptive documentation for each keymapping entry and introduces a new mapping for the OK/Select button. The descriptions serve as inline documentation to make the JSON configuration more maintainable and understandable.

  • Adds "description" fields to all existing keymappings (YouTube button, Info overlay, Channel up, Channel down, Back)
  • Introduces a new keymapping entry for the OK/Select button (keycode 353 → 28)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

}
},
{
"description": "OK/Select",
Copy link

Copilot AI Dec 22, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The description "OK/Select" uses a forward slash which is inconsistent with the other descriptions that use simple descriptive text. Consider using either "OK" or "Select" alone, or "OK button" to match the pattern used in "YouTube button".

Suggested change
"description": "OK/Select",
"description": "OK button",

Copilot uses AI. Check for mistakes.
@astolcenburg
Copy link
Contributor

Hi @denisyuji ,

according to our current input event mapping definition, keycode 353 will not reach cobalt because it will be remapped here:
https://github.com/rdkcentral/meta-image-assembler-rdke/blob/a2f6240cb633a7f347bb3b8314d61072403bc5a4/conf/rdkshell_keymapping.json#L18

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.

2 participants