2
私は、押されたキーが入力キーであるかどうかを調べる必要があります。WPFでは、押されたキーが入力キーかどうかを調べる方法(何かを印刷するかどうか)は?
私はPreviewkeydownイベントを持つTextBoxを持っています。
<TextBox PreviewKeyDown="MyTextBox_PreviewKeyDown" ></TextBox>
は、それから私は、イベントハンドラのコードを持ってここに
private void MyTextBox_PreviewKeyDown(object sender, KeyEventArgs e)
{
//I need to find out here if key pressed is
// an input key something like
// if (key is between a to z or 0 to 9 or some_character_input)
// {
//
// }
//else
//{
// Key is either F1,F2,UpArrow, DownArrow, etc
// }
}
それについて行くする方法を私を導いてください。
組み合わせはどのように押すのですか? Ctrl + Shift + A –
あなたはKeyboard.Modifiersを探す必要があります – anivas