Class KeyPress
Represents an operator that generates a sequence of characters produced whenever a key is pressed while the shader window has focus.
public class KeyPress : Source<EventPattern<INativeWindow, KeyPressEventArgs>>
- Inheritance
-
KeyPress
- Inherited Members
Properties
KeyChar
Gets or sets a value specifying an optional character to use as a filter.
public char? KeyChar { get; set; }
Property Value
- char?
Methods
Generate()
Generates an observable sequence that produces a character whenever the corresponding key is pressed while the shader window has focus.
public override IObservable<EventPattern<INativeWindow, KeyPressEventArgs>> Generate()
Returns
- IObservable<EventPattern<INativeWindow, KeyPressEventArgs>>
A sequence of events containing KeyPressEventArgs event data produced whenever a character key is pressed while the shader window has focus.