Table of Contents

Class KeyDown

Namespace
Bonsai.Windows.Input
Assembly
Bonsai.Windows.Input.dll

Represents an operator that produces a value whenever a keyboard key is pressed.

public class KeyDown : Source<Keys>
Inheritance
KeyDown
Inherited Members

Properties

Filter

Gets or sets the target keys to be observed.

public Keys Filter { get; set; }

Property Value

Keys

SuppressRepetitions

Gets or sets a value indicating whether to ignore character repetitions when a key is held down.

public bool SuppressRepetitions { get; set; }

Property Value

bool

Methods

Generate()

Returns an observable sequence that produces a value whenever a keyboard key is pressed.

public override IObservable<Keys> Generate()

Returns

IObservable<Keys>

A sequence of Keys values produced whenever a keyboard key is pressed.