public HotKeyManager RegisterGlobal(string id, string description, HotKeyScope scope, HotKey defaultHotKey, Action callback, bool enabled = true) { Register(id, description, scope, defaultHotKey, callback, enabled); return(this); }
/// <inheritdoc /> public RegisteredHotKey(Action callback, HotKeyScope scope) { Callback = callback; Scope = scope; }
public void RegisterHotKey(HotKey hotkey, Action callback, HotKeyScope scope = HotKeyScope.SM) { HotKeys[hotkey] = new RegisteredHotKey(callback, scope); }