private void SetUpKeyBinds(IHotkeyManager hotkeys) { hotkeys.Bind(_settings.GetItem <string>(DumpSceneBasicSettingsKey), () => { DumpBasic(); } ); hotkeys.Bind(_settings.GetItem <string>(DumpSceneDetailedSettingsKey), () => { DumpDetailed(); } ); }
public static Hotkey BindHotkey(this IHotkeyManager m, string hotkeyString, Action action, bool isOneTime = false) { Hotkey hotkey = new Hotkey(hotkeyString, isOneTime); m.Bind(hotkey, action); return(hotkey); }