PowerArgs.Cli.Button.RegisterShortcutIfPossibleAndNotAlreadyDone C# (CSharp) Method

RegisterShortcutIfPossibleAndNotAlreadyDone() private method

private RegisterShortcutIfPossibleAndNotAlreadyDone ( ) : void
return void
        private void RegisterShortcutIfPossibleAndNotAlreadyDone()
        {
            if (Shortcut != null && shortcutRegistered == false)
            {
                shortcutRegistered = true;
                Application.FocusManager.GlobalKeyHandlers.PushForLifetime(Shortcut.Key, Shortcut.Modifier, Click, this.LifetimeManager);
            }
        }