Пример #1
0
        void Activate()
        {
            // TODO this is janky, it really should be more specific than relying on something user configurable.
            var keyStroke = _shortcutService.GetShortcuts()
                            .Where(tuple => tuple.Item2 == AppAction.ActivateApp)
                            .Select(tuple => tuple.Item1)
                            .FirstOrDefault();

            _shortcutService.TryRequestShortcut(keyStroke);
        }