moses-palmer / pynput

Sends virtual input commands
GNU Lesser General Public License v3.0
1.78k stars 247 forks source link

pynput types ">" instead of "|" #593

Open vaygr opened 6 months ago

vaygr commented 6 months ago

Description

pynput types > instead of |.

Platform and pynput version

To Reproduce


from pynput.keyboard import Controller

keyboard = Controller()
keyboard.type('|')
>
vaygr commented 6 months ago

It appears for both keysyms 0x7c (|) and 0x3e (>) keyboard_mapping: https://github.com/moses-palmer/pynput/blob/12acf84dc0f721d91a957da65311497acb664933/lib/pynput/keyboard/_xorg.py#L251

returns 94 as the keycode.