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

fix(color): long press key handling, curve preview not updating #5107

Merged
merged 4 commits into from
Jun 7, 2024

Conversation

philmoz
Copy link
Collaborator

@philmoz philmoz commented Jun 2, 2024

PR #4849 introduced some subtle bugs into the way long press key handling worked on color radios.
E.G navigate to System Tools menu and long press ENTER key on a tool button.

Fixing this led down a rabbit warren that is the way input events are being handled on color radios - probably needs a serious overhaul.

For now this PR should make long press work like it did previously.

Also fixes an issue where the curve preview on the input edit page does not update if the curve is edited by long pressing on the curve button.

@pfeerick pfeerick added color Related generally to color LCD radios UX-UI Related to user experience (UX) or user interface (UI) behaviour bug/regression ↩️ A new version of EdgeTX broke something labels Jun 2, 2024
@pfeerick pfeerick added this to the 2.11 milestone Jun 2, 2024
@philmoz philmoz force-pushed the philmoz/color-long-press branch from 4dadb30 to c578359 Compare June 6, 2024 10:30
@pfeerick
Copy link
Member

pfeerick commented Jun 7, 2024

Yes, this fixes the problem I raised in #5031 so naturally I found another 🤭

Basically, scrolling order of elements can go... wonky.

Try this... go to Radio Settings -> Radio Setup. If you scroll (use roller and enter only from now on for interaction) you can scroll up and down through all elements in proper order. however, if for instance you alter the month... i.e. ENTER on the month, change it, press ENTER. Now see what happens when you start scrolling... it will jump to the year instead of day on the next click, then back to month, and then day, hour, etc. And if you scroll back, it will go hour, day, month, year, MONTH?, Mode.

Possibly related to that, is that sometimes the highlight is left on the number field you last edited, as well as following navigation/scroll, but is cleared when you scroll past the item again. This wasn't limited to radio setup... I can do this on other pages such as mixes, etc... i.e. as long as don't use RTN to exit field, or use touch keyboard. On that point, mixing the two doesn't work with a "stuck" field.

Do I get a chocolate? 🤣

@philmoz
Copy link
Collaborator Author

philmoz commented Jun 7, 2024

Here you go - 🍫

@philmoz
Copy link
Collaborator Author

philmoz commented Jun 7, 2024

I think I've fixed the issue with using the ENTER and RTN keys.

@pfeerick
Copy link
Member

pfeerick commented Jun 7, 2024

I think might have also created a new monster in the process... if you touch each of the date and time fields in turn, the heavy/active? outline remains until you use the rotary encoder to scroll and make it refresh. Also, that rotary / touch input issue seems to still be there... where if you use the rotary encoder to select one field, and touch for another, if you then go back and touch the first field, it expects to be using the rotary encoder for input (still/again).

i.e. ENTER on year, then touch month (touch keyboard appears), then touch on year again, touch keyboard disappears, rotary encoder input active again. Yeah, I know, mixing inputs, but it will be done, guaranteed.

@philmoz philmoz force-pushed the philmoz/color-long-press branch from a9cca40 to ed28019 Compare June 7, 2024 03:47
@philmoz
Copy link
Collaborator Author

philmoz commented Jun 7, 2024

I think I've fixed it (fingers crossed) - thank for doing better testing than I did 😁

@pfeerick
Copy link
Member

pfeerick commented Jun 7, 2024

Beautiful! You can have a 🍫 too! 😄

@pfeerick pfeerick merged commit 76dde34 into main Jun 7, 2024
44 checks passed
@pfeerick pfeerick deleted the philmoz/color-long-press branch June 7, 2024 05:43
@pfeerick pfeerick changed the title fix(color): issues with long press key handling. fix(color): long press key handling, curve preview not updating Jun 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug/regression ↩️ A new version of EdgeTX broke something color Related generally to color LCD radios UX-UI Related to user experience (UX) or user interface (UI) behaviour
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants