Skip to content
ConsoleMonster

API Reference

Enum

KeyModifiers

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 10 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 4

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