using System; using System.Windows.Forms; internal class SharpHotKey { public Keys Key; public int KeyCode; public bool Ctrl; public bool Shift; public bool Alt; public Action Callback; public SharpHotKey(Action callback, Keys key, bool ctrl = false, bool shift = false, bool alt = false) { Callback = callback; Key = key; KeyCode = (int)key; Ctrl = ctrl; Shift = shift; Alt = alt; } }