PowerArgs.Cli.KeyHandler.FromAction C# (CSharp) Method

FromAction() public static method

Creates a key handler from the given action
public static FromAction ( Action handler ) : IKeyHandler
handler Action the handler action code
return IKeyHandler
        public static IKeyHandler FromAction(Action<RichCommandLineContext> handler, params ConsoleKey[] keysHandled)
        {
            return new KeyHandler(keysHandled, handler);
        }