Translate Keys to char
问题 I want to translate a given set of System.Windows.Forms.Keys and a System.Windows.Forms.InputLanguage to the corresponding System.Char . Tried some experiments with MapVirtualKeyEx, but there is now way to consider keyboard state, and ToUnicodeEx is a pain with dead keys . My goal is a function ... static char? FromKeys(Keys keys, InputLanguage inputLanguage) { // As I think what can be helpful and I got trying to find a solution for this problem: Keys vkCode = keys & Keys.KeyCode; Keys