xanderfrangos / twinkle-tray

Easily manage the brightness of your monitors in Windows from the system tray
https://twinkletray.com
MIT License
5.45k stars 179 forks source link

Modifier keys get "stuck" when switching input source #864

Open Phillipus opened 5 days ago

Phillipus commented 5 days ago

v.1.16.2

Thanks for making this handy utility!

It's as if the modifier key release event is not picked up by TT when switching so that when switching back to Windows it considers the modifier key to be still down.

xanderfrangos commented 5 days ago

Is the keyboard shared through the monitor to the Mac/PC? Also, when the key gets stuck, are other apps affected other than Twinkle Tray?

Phillipus commented 4 days ago

Is the keyboard shared through the monitor to the Mac/PC? Also, when the key gets stuck, are other apps affected other than Twinkle Tray?

Yes, the keyboard is shared. All apps (and the OS) are affected when switching back to Windows, so it's a global thing.

xanderfrangos commented 2 days ago

I'm pretty sure this from Windows losing the keyboard mid-press while the input source is changed, rather than Twinkle Tray itself. You may want to try using the Twinkle Tray CLI for this, rather than a shortcut. It'd be something like:

"%LocalAppData%\Programs\twinkle-tray\Twinkle Tray.exe" --MonitorNum=1 --VCP="0x60:27"
Phillipus commented 1 day ago

I'm pretty sure this from Windows losing the keyboard mid-press while the input source is changed, rather than Twinkle Tray itself.

If I use Dell's DDPM app to do the same it's OK (I'd rather use TT). Is TT trapping key presses?