How do you get the character appropriate for the given KeyDown event in WPF?
Try this:
var virtualKey = (uint)KeyInterop.VirtualKeyFromKey(e.Key); var keyCode = MapVirtualKey(virtualKey, 0);
Import function MapVirtualKey
[DllImport("user32.dll")] static extern uint MapVirtualKey(uint uCode, uint uMapType);