iberianpig / fusuma-plugin-sendkey

Fusuma plugin that sending virtual keyboard events
MIT License
72 stars 2 forks source link

Exclude modifier keys used in Sendkey from clear_modifiers #20

Closed iberianpig closed 3 years ago

iberianpig commented 3 years ago

ref: https://github.com/iberianpig/fusuma/issues/232

There is a problem when using it with fusuma-plugin-keypress. The problem is that the modifier keys specified in keypress's property are still pressed when sendkey is executed.

For example, keypress: { LEFTALT: { sendkey: BRIGHTNESSDOWN }. With this specification, sendkey will send as LEFTALT (pressed by the user) + BRIGHTNESSDOWN (pressed by fusuma). => Since LEFTALT+BRIGHTNESSDOWN is an invalid shortcut key, and it will make no brightness change.