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

Bug: I Can't Turn Off or On Anything In The Green Button Menu #200

Closed
Adamdimoo opened this issue Sep 17, 2024 · 14 comments · Fixed by #242
Closed

Bug: I Can't Turn Off or On Anything In The Green Button Menu #200

Adamdimoo opened this issue Sep 17, 2024 · 14 comments · Fixed by #242
Assignees
Labels
bug Something isn't working question Further information is requested
Milestone

Comments

@Adamdimoo
Copy link

Please Help i Want To Turn Off Sponsor block

@Adamdimoo Adamdimoo added the bug Something isn't working label Sep 17, 2024
@marianmargraf
Copy link

+1 on my OLED B7 55

06.10.30
webOS 3.9.2

This issue started at the same time as the other YouTube issue (dark background during playback when UI overlays are toggled)

@jospezial
Copy link

@fire332
Copy link
Collaborator

fire332 commented Dec 23, 2024

Possible duplicate of #157.

Nevermind, this is different.

@fire332 fire332 added duplicate This issue or pull request already exists question Further information is requested and removed duplicate This issue or pull request already exists labels Dec 23, 2024
@fire332
Copy link
Collaborator

fire332 commented Dec 25, 2024

I can't reproduce this on my C1. Can anybody try out v0.3.5-rc2 and see if it's fixed?

@Informatic
Copy link
Member

Informatic commented Dec 25, 2024

Just checked v0.3.5-rc.2 on webOS 3.8.0 and seems like we have two issues:

  1. On menu open no option is focused and it seems like we need to press up/down a couple of times. I think it would make sense to put focus on first checkbox on options menu open.
  2. Enter/OK handling doesn't work because on older chrome evt.isTrusted is always undefined :/ I am not entirely sure of the reasoning behind the check there - is isTrusted set to false on events coming from magic remote cursor? IMO if that's what we want to avoid, we should probably listen to this: https://webostv.developer.lge.com/develop/guides/system-ui-visibility#visibility-of-the-cursor (or alternatively, if that doesn't work for whatever reason - keep a flag that disables OK handling that's turned on in mousemove and disabled in any other key press)

@fire332
Copy link
Collaborator

fire332 commented Dec 25, 2024

Thanks for the info. I've just added a log right before the isTrusted check and it is only fired once. I'm thinking Youtube changed their ways between then and now.

@fire332
Copy link
Collaborator

fire332 commented Dec 25, 2024

@throwaway96 this check was added in #143. Do you still remember which version(s) of webOS was this check required for? Or should I just remove it since it seems like it's not necessary anymore from my brief testing on my LG C1?

@fire332
Copy link
Collaborator

fire332 commented Dec 25, 2024

Also, here's the difference between toggling a checkbox with the enter button (no pointer) vs using the pointer:

without pointer
with pointer

I find it interesting how the checkbox is toggled even though isTrusted is false.

@fire332
Copy link
Collaborator

fire332 commented Dec 25, 2024

I'm thinking I replace the isTrusted check with evt instanceof KeyboardEvent.

@fire332
Copy link
Collaborator

fire332 commented Dec 25, 2024

Can someone check if the PR fixes their issue on webOS 6.10 as mentioned in #241?

@fire332 fire332 modified the milestones: v0.3.5, future Dec 25, 2024
@Informatic
Copy link
Member

Firmware 06.10.50 is webOS 3.9.3-63013 (on W17{P,R,M}), so matches what we have here.

@fire332
Copy link
Collaborator

fire332 commented Dec 25, 2024

Oh, good to know. I thought that version number referred to something else. I'll merge the fix now.

@fire332 fire332 modified the milestones: future, v0.3.5 Dec 25, 2024
@Informatic
Copy link
Member

I'll check this in a minute on my TV.

@fire332 fire332 self-assigned this Dec 25, 2024
@Informatic
Copy link
Member

Works perfectly, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants