Class KeyEvent
Defines a key event.
Inherited Members
Namespace: Sharpie
Assembly: sharpie.dll
Syntax
[PublicAPI]
public sealed class KeyEvent : Event
Properties
Char
Declaration
public Rune Char { get; }
Property Value
| Type | Description |
|---|---|
| Rune |
Key
Declaration
public Key Key { get; }
Property Value
| Type | Description |
|---|---|
| Key |
Modifiers
The modifier keys that were present at the time.
Declaration
public ModifierKey Modifiers { get; }
Property Value
| Type | Description |
|---|---|
| ModifierKey |
Name
The printable name of the key.
Declaration
public string? Name { get; }
Property Value
| Type | Description |
|---|---|
| string |
Methods
Equals(object?)
Determines whether the specified object is equal to the current object.
Declaration
public override bool Equals(object? obj)
Parameters
| Type | Name | Description |
|---|---|---|
| object | obj | The object to compare with the current object. |
Returns
| Type | Description |
|---|---|
| bool | true if the specified object is equal to the current object; otherwise, false. |
Overrides
GetHashCode()
Serves as the default hash function.
Declaration
public override int GetHashCode()
Returns
| Type | Description |
|---|---|
| int | A hash code for the current object. |
Overrides
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | A string that represents the current object. |