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

[亡魂溺海] 提交于 2019-12-24 01:02:43

问题


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?


回答1:


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.



来源:https://stackoverflow.com/questions/9865903/how-to-disable-wm-keydown-repeat-event-for-shift-ctrl-alt-key

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!