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

TextPicker: onKeyReleased doesn't stop timer on devices where up == menu key #4

Open
flocsy opened this issue Mar 28, 2024 · 2 comments

Comments

@flocsy
Copy link

flocsy commented Mar 28, 2024

Hi

first a bug: on fr965 (and I think on all but at least most 5 key watches) long pressing up == menu.
So in onKeyPressed we get KEY_UP, start the timer, but if we keep it holding long enough then onMenu is called (but of course in onMenu I return longPressTimer != null) and then in onKeyReleased none of the 4 keys are present in the event, but KEY_MENU.

Then a question: what is onKey() for? I tried it with some devices in the simulator but wasn't able to see it ever being called. I'm pretty sure there's a reason why the method is there. Is it needed for some old device?

@sabeard
Copy link
Contributor

sabeard commented Mar 29, 2024 via email

@flocsy
Copy link
Author

flocsy commented Mar 29, 2024

Yeah, I also have an open PR, but yours is from 4 years ago. I guess it's a waste of time. It's a pity

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

No branches or pull requests

2 participants