I want to be able to refer to keyboard using with standard, language-independent, but human-readable names.
For instance, if I want to tell someone that Meta + PrtScrn takes a screenshot, I have to refer to both learn.microsoft.com/en-us/previous-versions/windows/desktop/ee418641(v=vs.85)#remarks
for Meta (DIK_LWIN
) and github.com/MicrosoftDocs/win32/blob/7e2d4dc3a491774843d4ecfff704a9c1dd305264/desktop-src/inputdev/virtual-key-codes.md#virtual-key-codes
for PrtScrn (VK_SNAPSHOT
).
Consequently, it becomes DIK_LWIN
+ VK_SNAPSHOT
. This causes whoever is reading it to know two different sets of key naming sets, or to reference two. I'll have better luck just using the English names.
Does anyone know of a solution, like a comprehensive name set? I don't want to use numeric JS KeyCodes.
I don't know how I missed it, but VK_LWIN
does exist. github.com/MicrosoftDocs/win32/blob/7e2d4dc3a491774843d4ecfff704a9c1dd305264/desktop-src/inputdev/virtual-key-codes.md#virtual-key-codes
might be the more comprehensive reference set.