private bool IsRegisterCallback(object sender, HuionKeyEventArgs hotKey) { bool flag = KeyboardUtils.CheckHotkey(Fixer4Main.MainForm.Handle, hotKey); if (sender == this.tvOpenMainForm) { this.pbOpenMainForm.Visible = !flag; } return(flag); }
public static bool CheckHotkey(IntPtr handle) { return(KeyboardUtils.CheckHotkey(handle, ShowUIShortcut)); }