pynput icon indicating copy to clipboard operation
pynput copied to clipboard

pynput types ">" instead of "|"

Open vaygr opened this issue 1 year ago • 1 comments

Description

pynput types > instead of |.

Platform and pynput version

  • Manjaro Linux
  • pynput 1.7.6

To Reproduce


from pynput.keyboard import Controller

keyboard = Controller()
keyboard.type('|')
>

vaygr avatar Mar 16 '24 13:03 vaygr

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.

vaygr avatar Mar 16 '24 14:03 vaygr