andrew4582

Ctrl W KeyDown WPF

Aug 11th, 2012
185
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.21 KB | None | 0 0
  1. if (Keyboard.IsKeyDown(Key.LeftCtrl) || Keyboard.IsKeyDown(Key.RightCtrl))
  2.             {
  3.                 if (e.Key == Key.W)
  4.                 {
  5.                     Close();
  6.                 }
  7.             }
Advertisement
Add Comment
Please, Sign In to add comment