As an exercise - very good. How to practice switch is fine)
But the problem has not disappeared.
I’ll look for a solution a little more. If I can’t find it, I’ll write my keyboard using the “press = letter” method, otherwise I don’t see an option to realize my idea.
But you can create a beautiful keyboard)))))
But this is a long time. I would not want to do this.
By the way, keyCode also does not recognize.
After pressing the English key, I press the Russian key, and keyCode does not change.
Moreover, numbers and symbols work fine in any case.
I do not know if this is useful to anyone, but I decided to supplement the topic.
I do not see any other options other than those suggested to me from the outside.
For example, to intercept clicks directly from the android.
Or use editText also android.
I’ll throw a link here to my other topic regarding this, if I get a suitable answer there.
Thank you for responding here too)
I don’t need my keyboard, I made it and am doing it because I don’t see a way out of the situation.
Maybe the top not quite clearly written, I am poor in explanation.
The bottom line is that when I open the keyboard through openKeyboard (); , I write in English letters and use any characters - everything works. And if I click on the Cyrillic alphabet (I use Russian), the program does not see these clicks.
I checked, even keyCode does not change in any way.
Can you take a look at this topic with the information received?