boppreh / keyboard

Hook and simulate global keyboard events on Windows and Linux.
MIT License
3.76k stars 433 forks source link

question about how 2 expree dot(`.`) #599

Open BackMountainDevil opened 1 year ago

BackMountainDevil commented 1 year ago

detail: I want to use this pkg to simulate numpad on laptop, which not having numpad on right side.

keyboard.press_and_release(".") # or "dot"

the code can work if I do not activate input method(such as fcitx5). it can really type .. Howver, if I activate fcitx5 to Chinese. The code would type . In fact, the dot in number pad should type . even I use CJK input method.

Any advice is welcome.