Reputation: 127
I have an Windows application treats Windows key events.
The application conveys the Windows Message.
When I hold down the Shift key, WM_KEYDOWN
message occurs repeatedly.
I want to convey just one WM_KEYDOWN
message, even though the Shift key is holding down.
Would you please let me know how to resolve this issue?
Upvotes: 2
Views: 1117
Reputation: 799150
You can't. Inspect bit 30 of lParam
to see if the message is a transition from up to down, or a repeat of down.
Upvotes: 6