Skip to content

Keyboard Class

Adds keyboard-related extension methods for IScreenObject.

C#
public static class Keyboard

Inheritance object

WithKeyboard(IScreenObject, Func<IScreenObject, Keyboard, bool>)

Section titled “WithKeyboard(IScreenObject, Func<IScreenObject, Keyboard, bool>)”

Adds a keyboard handler to a IScreenObject.

C#
public static IScreenObject WithKeyboard(this IScreenObject screenObject, Func<IScreenObject, Keyboard, bool> handler)

screenObject IScreenObject
The object to use.

handler Func<IScreenObject, Keyboard, bool>
The handler callback.

IScreenObject

Removes all of the keyboard hooks added with WithKeyboard(IScreenObject, Func<IScreenObject, Keyboard, bool>).

C#
public static IScreenObject RemoveKeyboardHooks(this IScreenObject screenObject)

screenObject IScreenObject
The object to use.

IScreenObject

RemoveKeyboardHook(IScreenObject, Func<IScreenObject, Keyboard, bool>)

Section titled “RemoveKeyboardHook(IScreenObject, Func<IScreenObject, Keyboard, bool>)”

Removes the specified handler that was added with WithKeyboard(IScreenObject, Func<IScreenObject, Keyboard, bool>).

C#
public static IScreenObject RemoveKeyboardHook(this IScreenObject screenObject, Func<IScreenObject, Keyboard, bool> handler)

screenObject IScreenObject
The object to use.

handler Func<IScreenObject, Keyboard, bool>
The handler callback.

IScreenObject