有没有keyCode
Windows 键或用 Javascript 或 jQuery 检测何时按下的方法?
I've dug through StackOverflow and have found how to detect command for Mac and Ctrl and Alt for Mac and Windows, but can't find any solutions for detecting when the user presses Windows Key. Not sure if it's just a metaKey
like command is but represented by the Windows Flag, or if it's even detectable at all.
VK_LWIN
0x5B - 左 Windows 键(自然键盘)EDIT:这将 Ed 的答案解释为十六进制5B
is 91
VK_RWIN
0x5C - Windows 右键(自然键盘)
SOURCE: https://msdn.microsoft.com/en-us/library/windows/desktop/dd375731%28v=vs.85%29.aspx https://msdn.microsoft.com/en-us/library/windows/desktop/dd375731%28v=vs.85%29.aspx
另外,根据维基百科:
Windows 键也可以在其他操作系统上使用。
在 Unix 和类 Unix 操作系统上,有时称为“Meta”
或“超级”。
SOURCE: https://en.wikipedia.org/wiki/Windows_key#Use_with_non-Microsoft_operating_systems https://en.wikipedia.org/wiki/Windows_key#Use_with_non-Microsoft_operating_systems
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)