-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
TextInput Bug ( a -> l , 1 -> 9 , q -> o , z -> . etc ) #7627
Comments
Here is a log message on console... [INFO ] [Logger ] Record log in /root/.kivy/logs/kivy_21-09-20_1.txt |
@Psalm404 from kivy.app import App
from kivy.lang.builder import Builder
from kivy.core.window import Window
kv = """
FloatLayout:
TextInput:
size_hint:0.5,0.5
pos_hint:{'center_x':0.5,'center_y':0.5}
"""
class KivyApp(App):
def build(self):
Window.bind(on_key_down=lambda *x: print(x))
return Builder.load_string(kv)
KivyApp().run() |
Thank you Polygun. First screenshot is just after run your script, And I also copy and paste its log. FYI: all of other applications on this PC works fine in terms of keyboad input. I hope this answered your question. [INFO ] [Logger ] Record log in /root/.kivy/logs/kivy_21-09-20_50.txt |
a is not even in the on_key_press ? that is weird |
Thank you Polygun. I installed kivy by using pip3. ( # pip3 install kivy ) I am using standard qwerty keyboad and there is no such problems on ( I attached its screenshot. ) I suspect this is caused by kivy layer. |
ok, can you please also provide Screenshot and logs for this too :) from kivy.app import App
from kivy.lang.builder import Builder
from kivy.core.window import Window
kv = """
FloatLayout:
TextInput:
size_hint:0.5,0.5
pos_hint:{'center_x':0.5,'center_y':0.5}
keyboard_on_key_down : lambda *x: print(x)
"""
class KivyApp(App):
def build(self):
Window.bind(on_key_down=lambda *x: print(x))
return Builder.load_string(kv)
KivyApp().run() |
Thank you Polygun. I ran your new code and I input 'a' 'b' 'c' 'd' 'e' 'f' 'g' in this order again. First screenshot is just after run your script, I hope this answered your question. [INFO ] [Logger ] Record log in /root/.kivy/logs/kivy_21-09-21_0.txt |
are you in the discord server ? https://chat.kivy.org/ |
No, I am not. |
can you check in your ~/.kivy/config.ini (or typing f1 in the kivy app) if you have a different keymap set from what you expect? |
Thank you tshirtman! I checked "~/.kivy/config.ini" following your advice, ( I attached screenshot of it. ) All of other appication including Python3 can handle keyboad |
@Psalm404 Can you please check the SDL version that are you using? |
Thank you misl6. I will check it now... |
I checked it and found that I am using SDL2-2.0.16-2.fc34.x86_64 on my PC. I also checked newer packages by OS command ( # dnf update ) just in case, |
I might find the cause or work around of this phenomena... |
This is the work aroud that I found so far. If I bypass Ibus ( Intelligent Input Bus - which is one of Input Method ) keymap, I can input correct characters. But if I re-use or re-enable Ibus keymap, this phenomena shows up again. But all the other programs including Python never affect its settings... ( Good Logmessage ) ( Script file - Common ) kv = """ class KivyApp(App): KivyApp().run() ( Bad Logmessage ) Thank you for all |
*
Python: 3.9.7Next code can't receive correct character at all.
if you input 'a' , it receives 'l' ( small L ).
'1' then '9'
'q' then 'o'
etc.
How can I fix this?
The text was updated successfully, but these errors were encountered: