moses-palmer / pynput

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

fix(xorg): Fix media keysym string prefix on Linux #340

Closed P403n1x87 closed 3 years ago

P403n1x87 commented 3 years ago

With the current prefixing of media keys, it's not possible to emulate key events on Linux. The fix is inspired by https://github.com/openstenoproject/plover/blob/d20167f4da549376af7d978dec5c17b1c4f94d89/plover/oslayer/xkeyboardcontrol.py#L52, where the right prefix, i.e. "XF86_Audio", is used.

moses-palmer commented 3 years ago

Thank you for your contribution!

I have merged it into master.