Exemplo n.º 1
0
 protected override void OnLostFocus(EventArgs e)
 {
     base.OnLostFocus(e);
     KeyBoardHook.StopHook();
 }
Exemplo n.º 2
0
 protected override void OnGotFocus(EventArgs e)
 {
     base.OnGotFocus(e);
     KeyBoardHook.HookAll(new HuionKeyEventHandler(this.onKeyDown), new HuionKeyEventHandler(this.onKeyUp));
 }