We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
以下是键码列表,其中包含交互式查找它们的方法。
Here's a list of keycodes that includes a way to look them up interactively.
我知道不久前有人问过这个问题,但我在 MSDN 中找到了用于 C/C++ 的虚拟键盘按键代码的完整列表。这还包括鼠标事件。请注意,它与 javascript 键代码不同(我在 VK_OEM 部分注意到它)。
这是链接:
http://msdn.microsoft.com/en-us /library/windows/desktop/dd375731(v=vs.85).aspx
I know this was asked awhile back, but I found a comprehensive list of the virtual keyboard key codes right in MSDN, for use in C/C++. This also includes the mouse events. Note it is different than the javascript key codes (I noticed it around the VK_OEM section).
Here's the link:
http://msdn.microsoft.com/en-us/library/windows/desktop/dd375731(v=vs.85).aspx
你没有提到你想用什么语言来跟踪这些,但我找到了两个javascript:
http://www.cambiaresearch.com/c4/702b8cd1-e5b0-42e6-83ac-25f0306e3e25/Javascript-Char-Codes-Key-Codes.aspx
You don't mention what language you want to track these in, but I found two for javascript:
http://www.cambiaresearch.com/c4/702b8cd1-e5b0-42e6-83ac-25f0306e3e25/Javascript-Char-Codes-Key-Codes.aspx