コード例 #1
0
 void SetupKeyInterception()
 {
     keyInterceptor.AddInterceptingKey(
         handleContainer.Handle, KeyboardApi.VK_KEY_UP);
     keyInterceptor.AddInterceptingKey(
         handleContainer.Handle, KeyboardApi.VK_KEY_DOWN);
     keyInterceptor.AddInterceptingKey(
         handleContainer.Handle, KeyboardApi.VK_KEY_LEFT);
     keyInterceptor.AddInterceptingKey(
         handleContainer.Handle, KeyboardApi.VK_KEY_RIGHT);
     keyInterceptor.AddInterceptingKey(
         handleContainer.Handle, KeyboardApi.VK_HOME);
     keyInterceptor.AddInterceptingKey(
         handleContainer.Handle, KeyboardApi.VK_DELETE);
 }
コード例 #2
0
 void SetupKeyInterception()
 {
     keyInterceptor.AddInterceptingKey(
         handleContainer.Handle,
         Key.Up);
     keyInterceptor.AddInterceptingKey(
         handleContainer.Handle,
         Key.Down);
     keyInterceptor.AddInterceptingKey(
         handleContainer.Handle,
         Key.Left);
     keyInterceptor.AddInterceptingKey(
         handleContainer.Handle,
         Key.Right);
     keyInterceptor.AddInterceptingKey(
         handleContainer.Handle,
         Key.Home);
     keyInterceptor.AddInterceptingKey(
         handleContainer.Handle,
         Key.Delete);
 }