Skip to content

Conversation

@thouravi
Copy link

Description

When gHotkeyIgnoreCount > 0, the WM_HOTKEY message handler breaks out of the switch statement instead of returning early. This allows the message to propagate to DefWindowProc, potentially triggering unintended hotkey behavior in other applications (e.g., if the same hotkey is registered elsewhere).

Solution

Replacing the break statement with return 0 in the WM_HOTKEY ignore block ensures the message is marked as "handled," preventing further propagation.

@thouravi thouravi closed this by deleting the head repository Aug 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant