Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keynote BT plugin: long press on OK to switch between Space and Retur… #1729

Closed
wants to merge 2 commits into from
Closed

Keynote BT plugin: long press on OK to switch between Space and Retur… #1729

wants to merge 2 commits into from

Conversation

coded-with-claws
Copy link

@coded-with-claws coded-with-claws commented Sep 10, 2022

…n (useful for Kodi)

What's new

  • Hold OK button to toggle the Keynote principal button : SPACE or ENTER. The keynote principal button will send either SPACE or ENTER accordingly.
  • This adds more versatility to the Keynote plugin, in particular to control Kodi (the Kodi menu needs Enter to validate, but when playing a video, Space does play/pause and Enter opens the Playback menu which allows to stop the video.
  • Please review the code
    • Especially because I added string constants in the beginning of the .c file. Is it the good way to do ?
    • I superposed the drawing of buttons on top of string texts. It works but I don't know if you are ok with that.
  • Please review the GUI update with the UX designer, because I added a new indication ("Hold icon_ok : space / enter") and modified the "Hold to exit".

Verification

  • Run BT plugin Keynote
  • Hit the OK button : it sends SPACE
  • Hold the OK button : on screen, the button Space becomes Enter.
  • Hit the OK button : it sends ENTER
  • Hold the OK button : on screen, the button Space becomes Space.

Checklist (For Reviewer)

  • PR has description of feature/bug or link to Confluence/Jira task
  • Description contains actions to verify feature/bugfix
  • I've built this code, uploaded it to the device and verified feature/bugfix

@coded-with-claws
Copy link
Author

The "Merging is blocked" is because there was a button "Update branch" since there were commits on dev after my PR. I thought I could run the update of my PR myself :)

@skotopes
Copy link
Member

Hi @coded-with-claws

How about cases when someone want to press and hold space button?

@coded-with-claws
Copy link
Author

coded-with-claws commented Sep 15, 2022

Hi @coded-with-claws

How about cases when someone want to press and hold space button?

Hi @skotopes

It's not possible anymore, indeed.
Personally, I can't think of a use case about that, as the Keynote plugin is designed for presentations. To me, the "space" button is meant to validate something (flip to next slide), that's why I think it's interesting to have the possibility to send either space either return. The plugin becomes more versatile to select/validate things.

But it's my personal point of view, being a Kodi user :)
I'm not sure what is in the best interest for the community, the Keynote being a generic plugin.
I keep this evolution in my personal fork for my own needs. I thought it could be interesting for the community firmware, but I let it up to you :)

@hedger hedger added UI Affects UI Applications Non-core applications labels Sep 19, 2022
@skotopes
Copy link
Member

@coded-with-claws I'll close this PR, it's breaking change that affects current users.

@skotopes skotopes closed this Sep 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Applications Non-core applications UI Affects UI
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants