public HotkeysMapping GetHotkeys()
{
var result = new HotkeysMapping();
foreach (var w in wrappers)
result[w.ToKeyData()] = w.Action;
return result;
}
public override object EditValue(ITypeDescriptorContext context, IServiceProvider provider, object value) { if ((provider != null) && (((IWindowsFormsEditorService)provider.GetService(typeof(IWindowsFormsEditorService))) != null)) { var form = new HotkeysEditorForm(HotkeysMapping.Parse(value as string)); if (form.ShowDialog() == DialogResult.OK) { value = form.GetHotkeys().ToString(); } } return(value); }