How to get the Char(acter) and VirtualKey from a WPF KeyDown event
While working on my WPF PowerShell console, I’m working on implementing PSRawUserInterface, and had to implement a method called ReadKey which returns a KeyInfo object. KeyInfo is a pretty simple struct class with four properties: VirtualKeyCode Character ControlKeyState KeyDown So it doesn’t seem like it would be a real problem … just handle the KeyDown [...]