cnook
cnook

Reputation: 127

How to disable WM_KEYDOWN repeat event for Shift/Ctrl/Alt key?

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

Answers (1)

Ignacio Vazquez-Abrams
Ignacio Vazquez-Abrams

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

Related Questions