Keyboard Class
Definition
Section titled “Definition”Adds keyboard-related extension methods for IScreenObject.
public static class KeyboardInheritance object
Methods
Section titled “Methods”WithKeyboard(IScreenObject, Func<IScreenObject, Keyboard, bool>)
Section titled “WithKeyboard(IScreenObject, Func<IScreenObject, Keyboard, bool>)”Adds a keyboard handler to a IScreenObject.
public static IScreenObject WithKeyboard(this IScreenObject screenObject, Func<IScreenObject, Keyboard, bool> handler)Parameters
Section titled “Parameters”screenObject IScreenObject
The object to use.
handler Func<IScreenObject, Keyboard, bool>
The handler callback.
Returns
Section titled “Returns”RemoveKeyboardHooks(IScreenObject)
Section titled “RemoveKeyboardHooks(IScreenObject)”Removes all of the keyboard hooks added with WithKeyboard(IScreenObject, Func<IScreenObject, Keyboard, bool>).
public static IScreenObject RemoveKeyboardHooks(this IScreenObject screenObject)Parameters
Section titled “Parameters”screenObject IScreenObject
The object to use.
Returns
Section titled “Returns”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>).
public static IScreenObject RemoveKeyboardHook(this IScreenObject screenObject, Func<IScreenObject, Keyboard, bool> handler)Parameters
Section titled “Parameters”screenObject IScreenObject
The object to use.
handler Func<IScreenObject, Keyboard, bool>
The handler callback.