Question

the question is simple and requires even simpler answer (yes or no :) ) Is PlatformKeyCode the same across different countries (and therefore different keyboards layouts)?

Many thanks.

Was it helpful?

Solution

No.

From the KeyEventArgs.PlatformKeyCode documentation:

Gets an integer value that represents the key that is pressed or released (depending on which event is raised). This value is the nonportable key code, which is operating system–specific.

This looks like a scan code, which also depends on the keyboard layout.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top