private void texBox_KeyDown(object sender, KeyEventArgs e)
{ if (Keyboard.Modifiers == ModifierKeys.Shift) { if(Keyboard.IsKeyDown(Key.D8)) { e.Handled = true; } if (Keyboard.IsKeyDown(Key.OemPipe)) { e.Handled = true; } }本文共 274 字,大约阅读时间需要 1 分钟。
private void texBox_KeyDown(object sender, KeyEventArgs e)
{ if (Keyboard.Modifiers == ModifierKeys.Shift) { if(Keyboard.IsKeyDown(Key.D8)) { e.Handled = true; } if (Keyboard.IsKeyDown(Key.OemPipe)) { e.Handled = true; } }转载于:https://www.cnblogs.com/zsx-blog/p/8534362.html