Show / Hide Table of Contents

Class Keyboard

Adds keyboard-related extension methods for IScreenObject.

Inheritance
object
Keyboard
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
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
In this article

Back to top

Back to top Generated by DocFX