I'm developing an Android app where PyKeyboard is being used. All character keys were working fine except the less than sign. I thought it was a wrong code in my program, but it was fine. Then I took it to terminal and tested it there and then I understood it is PyKeyboard's fault. Everytime I typed this sign, I kept on getting greater than sign.
I tested by typing tap_key('<') and the output came out as >.
I even tested it by typing tap_key(u'\u003c') and the result still came out as >.
But the strange thing is when I tested with:
k.press_key(k.shift_key)
k.tap_key(',')
k.release_key(k.shift_key)
I'm developing an Android app where PyKeyboard is being used. All character keys were working fine except the less than sign. I thought it was a wrong code in my program, but it was fine. Then I took it to terminal and tested it there and then I understood it is PyKeyboard's fault. Everytime I typed this sign, I kept on getting greater than sign. I tested by typing tap_key('<') and the output came out as >. I even tested it by typing tap_key(u'\u003c') and the result still came out as >.
But the strange thing is when I tested with: k.press_key(k.shift_key) k.tap_key(',') k.release_key(k.shift_key)
I got the correct result. I got <.