SavinaRoja / PyUserInput

A module for cross-platform control of the mouse and keyboard in python that is simple to install and use.
GNU General Public License v3.0
1.07k stars 244 forks source link

All character keys work fine except opening angle bracket(or less than sign). #86

Open parthibbiswas opened 8 years ago

parthibbiswas commented 8 years ago

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 <.