Monday, 29 March 2021

Bind Keyboard to TextInput while it is hidden on Android Kivy

I have created a simple kivy app which is successfully running on windows. It takes barcode of products as input and proceed further. I have designed my own keypad for my application + It takes input from Barcode Scanner as well (Scanned barcode is being placed in focused TextInput). For this, I have set

    Config.set('kivy', 'keyboard_mode', 'system')

which works perfectly fine.

Now, I want to run this app on android. On android, when a TextInput get's focus the android's keyboard becomes visible, which I don't want. I set TextInput property 'keyboard_mode' to 'managed' for this but it stops putting scanned barcode (from Barcode Scanner) in TextInput (as system keyboard will not be requested now).

What I want, hide the keyboard but it remain binded with focused TextInput, to access input from Barcode Scanner. I am stuck here, any help will be highly appreciated.

I am using: kivy==2.0.0, python==3.7.9 and buildozer to package application for android.



from Bind Keyboard to TextInput while it is hidden on Android Kivy

No comments:

Post a Comment