public override bool CanConvertToString(object value, IValueSerializerContext context)
        {
            if (value is Hotkey)
            {
                return(HotkeyConverter.IsHotkeyDefined((Hotkey)(value)));
            }

            return(false);
        }
 public override string ConvertToString(object value, IValueSerializerContext context)
 {
     return(HotkeyConverter.ToString((Hotkey)(value), CultureInfo.InvariantCulture));
 }
 public override object ConvertFromString(string value, IValueSerializerContext context)
 {
     return(HotkeyConverter.FromString(value, CultureInfo.InvariantCulture));
 }