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);
        }
Esempio n. 2
0
 /// <inheritdoc />
 public RegisteredHotKey(Action callback, HotKeyScope scope)
 {
     Callback = callback;
     Scope    = scope;
 }
Esempio n. 3
0
 public void RegisterHotKey(HotKey hotkey,
                            Action callback,
                            HotKeyScope scope = HotKeyScope.SM)
 {
     HotKeys[hotkey] = new RegisteredHotKey(callback, scope);
 }