andrew4582

Clt W WPF

Jul 1st, 2012
154
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.20 KB | None | 0 0
  1. void Window_KeyDown(object sender,KeyEventArgs e) {
  2.     if(Keyboard.IsKeyDown(Key.LeftCtrl) || Keyboard.IsKeyDown(Key.RightCtrl)) {
  3.         if(e.Key == Key.W) {
  4.             Close();
  5.         }
  6.     }
  7. }
Advertisement
Add Comment
Please, Sign In to add comment