Class Keyboard
Adds keyboard-related extension methods for IScreenObject.
Inherited Members
Namespace: SadConsole.Quick
Assembly: SadConsole.dll
Syntax
public static class Keyboard
Methods
RemoveKeyboardHook(IScreenObject, Func<IScreenObject, Keyboard, bool>)
Removes the specified handler that was added with WithKeyboard(IScreenObject, Func<IScreenObject, Keyboard, bool>).
Declaration
public static IScreenObject RemoveKeyboardHook(this IScreenObject screenObject, Func<IScreenObject, Keyboard, bool> handler)
Parameters
Type | Name | Description |
---|---|---|
IScreenObject | screenObject | The object to use. |
Func<IScreenObject, Keyboard, bool> | handler | The handler callback. |
Returns
Type | Description |
---|---|
IScreenObject |
RemoveKeyboardHooks(IScreenObject)
Removes all of the keyboard hooks added with WithKeyboard(IScreenObject, Func<IScreenObject, Keyboard, bool>).
Declaration
public static IScreenObject RemoveKeyboardHooks(this IScreenObject screenObject)
Parameters
Type | Name | Description |
---|---|---|
IScreenObject | screenObject | The object to use. |
Returns
Type | Description |
---|---|
IScreenObject |
WithKeyboard(IScreenObject, Func<IScreenObject, Keyboard, bool>)
Adds a keyboard handler to a IScreenObject.
Declaration
public static IScreenObject WithKeyboard(this IScreenObject screenObject, Func<IScreenObject, Keyboard, bool> handler)
Parameters
Type | Name | Description |
---|---|---|
IScreenObject | screenObject | The object to use. |
Func<IScreenObject, Keyboard, bool> | handler | The handler callback. |
Returns
Type | Description |
---|---|
IScreenObject |