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 in the keyboard event listener #2423

Closed
Neizvestnyj opened this issue Feb 17, 2021 · 6 comments
Closed

Bug in the keyboard event listener #2423

Neizvestnyj opened this issue Feb 17, 2021 · 6 comments

Comments

@Neizvestnyj
Copy link
Contributor

  • Python: 3.8
  • OS: android
  • Kivy: 2.0.0, master
  • Cython: 0.29.19
  • OpenJDK: 8

When I click on the input field, the event handler that is declared in the init method stops working (events like 'back') , but if I switching focus away from the whole app, then back again, the handler starts working until I click on the text field again.

All this I tested with:
api: 27, 28, 29, 30
ndk: 19b, 19c, 20b, 21e
p4a branch: develop, master, release-2019.06.06, release-2020.06.02

p4a.bootstrap = sdl2
android.arch = armeabi-v7a, arm64-v8a

Code: https://pastebin.com/RJH6abdG

1613572739534.mp4
@RobertFlatt
Copy link
Contributor

Well you didn't get an answer there kivy/kivy#7374
So I suppose it doesn't hurt to try here ;)

However I think nobody understands what is going on as shown by:

#1903
kivy/kivy#6686
spesmilo/electrum#6276
kivy/kivy#7375

@Neizvestnyj
Copy link
Contributor Author

@RobertFlatt Yes, most likely the problem is with p4a, or rather with sdl, and the bug is old, and not related to Google, they are doing well

@RobertFlatt
Copy link
Contributor

Months later, I think this may be due to the event listener not returning a boolean,
https://github.com/kivy/python-for-android/blob/develop/doc/source/apis.rst#handling-the-back-button

@Neizvestnyj
Copy link
Contributor Author

Neizvestnyj commented Jun 2, 2021

Months later, I think this may be due to the event listener not returning a boolean,
https://github.com/kivy/python-for-android/blob/develop/doc/source/apis.rst#handling-the-back-button

For my example, this did not solve the problem. But now suggestions works (It's still broken, but at least something).
requirements = kivy==master
p4a.branch = develop

@Neizvestnyj
Copy link
Contributor Author

Hi everyone, has this bug been fixed yet?

@Neizvestnyj
Copy link
Contributor Author

Fixed in kivy==master (2.2.0dev0)

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