C# Class PowerArgs.Cli.KeyboardShortcut

A class that represents a keyboard shortcut that can be activate a control that does not have focus
Show file Open project: adamabdelhamed/PowerArgs

Public Methods

Method Description
KeyboardShortcut ( ConsoleKey key, ConsoleModifiers modifier = null ) : System

Creates a new shortut

Method Details

KeyboardShortcut() public method

Creates a new shortut
public KeyboardShortcut ( ConsoleKey key, ConsoleModifiers modifier = null ) : System
key ConsoleKey the shortcut key
modifier ConsoleModifiers A key modifier (e.g. shift, alt) that, when present, must be pressed in order for the shortcut key to trigger. Note that control is not /// supported because it doesn't play well in a console
return System