lighterowl / transgui

A fork of Transmission Remote GUI
GNU General Public License v2.0
152 stars 3 forks source link

Don't pass 0 as 'vk' to RegisterHotKey #92

Closed lighterowl closed 4 months ago

lighterowl commented 4 months ago

Fixes #85.

It seems like clicking any Windows notification (i.e. not just Chrome) causes the window procedure to be called with WM_HOTKEY. However, this is the case only if the vk argument to the RegisterHotKey call is zero. Zero isn't a valid Virtual Key Code so we shouldn't call the function at all in the first place.