I was trying to use the event keyDown event in a wpf textbox control and capture clicked keys with e.Key, however since the at “@” character doesn’t have a key, I can’t catch it. How do I detect the “@” key clicked
private void richTextBox1_KeyDown(object sender, KeyEventArgs e)
{
if(e.Key == Key.) // nothing corresponding the at key
}
KeyDownis for actual keys, it does not concern itself with their interpretation. UsePreviewTextInputinstead for example.