PowerArgs.Cli.ConsoleAppKeyboardInputManager.ConsoleAppKeyboardInputManager C# (CSharp) Method

ConsoleAppKeyboardInputManager() public method

public ConsoleAppKeyboardInputManager ( ConsoleApp app ) : System
app ConsoleApp
return System
        public ConsoleAppKeyboardInputManager(ConsoleApp app)
        {
            this.Application = app;
            this.handlers = new Stack<Dictionary<string, KeyboardEventHandler>>();
            this.currentStackDepth = app.FocusManager.StackDepth;
            app.FocusManager.SubscribeForLifetime(nameof(FocusManager.StackDepth), StackDepthChanged, app.LifetimeManager);
        }