Skip to content
ConsoleMonster
Enum

KeyModifiers

ConsoleMonster.Input

Namespace
ConsoleMonster.Input
Assembly
ConsoleMonster
Base
Enum
Implements
IComparable ISpanFormattable IFormattable IConvertible
Modifiers
sealed
Attributes
Flags

Modifier keys held with a key press.

Inheritance

  • Enum
  • KeyModifiers

Usage

Explore 12 API references to this type

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters 6

Values

public const KeyModifiers None #

No modifier.

Value: 0
public const KeyModifiers Shift #

Shift. Printable characters never carry it: the character itself already reflects Shift.

Value: 1
public const KeyModifiers Alt #

Alt (Option on macOS). AltGr is reported as the character it produces, without modifiers.

Value: 2
public const KeyModifiers Control #

Control.

Value: 4