public void SetQuickKey(QuickKey quickKey)
        {
            if (quickKey == null)
            {
                QuickKey = null;
                Notify(nameof(QuickKey));

                return;
            }

            QuickKey = quickKey.ToString();
            AWWindow.QuickKeys.Add(new ActionQuickKey(() =>
            {
                if (Command?.CanExecute(null) == true)
                {
                    Command?.Execute(null);
                }
            }, quickKey.Key, quickKey.ModifierKeys));
        }
 private void Init(IEnumerable <IContextMenuAction> actions, QuickKey quickKey)
 {
     SetActions(actions);
     SetQuickKey(quickKey);
 }
 public ContextMenuActionContext(string header, PackIconKind?icon, Action action, QuickKey quickKey = null) : base(header, icon, action)
     => SetQuickKey(quickKey);
 public ContextMenuActionContext(string header, PackIconKind?icon, Action action, IEnumerable <IContextMenuAction> actions, QuickKey quickKey = null) : base(header, icon, action)
     => Init(actions, quickKey);
 public ContextMenuActionContext(string header, PackIconKind?icon, ICommand command, QuickKey quickKey = null) : base(header, icon, command)
     => SetQuickKey(quickKey);