internal static Hotkey Create(AKey k, string description) { return new Hotkey( k.Key.ToKeys() , k.Modifiers == null ? ModKeys.None: k.Modifiers.Select(m => m.ToModKeys()).Aggregate((a, b) => a |= b) , description ); }
internal static Hotkey Create(AKey k, string description) { return(new Hotkey( k.Key.ToKeys() , k.Modifiers == null ? ModKeys.None: k.Modifiers.Select(m => m.ToModKeys()).Aggregate((a, b) => a |= b) , description )); }
/// <summary> /// Supports event from AKey press. /// </summary> /// <param name="description">Description of the specific key, must be unique.</param> public static HotkeyEventArgs Create(AKey k, string description) { return(new HotkeyEventArgs { Hotkey = Hotkey.Create(k, description) }); }
/// <summary> /// Supports event from AKey press. /// </summary> /// <param name="description">Description of the specific key, must be unique.</param> public static HotkeyEventArgs Create(AKey k, string description) { return new HotkeyEventArgs {Hotkey = Hotkey.Create(k, description)}; }