Vixen
02b45cc4
csharp
public enum KeyModifiers

The modifier keys held when an event happened.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

Left and right are distinguished because AltGr is right alt on layouts that have one, and a shortcut bound to "alt" that fires while the user types @ on a German keyboard is a real bug. Shift, Control, Alt and Meta are the either-side masks for the common case.

Fields and properties (15)

  • None

    No modifier held.

  • LeftShift

    The left shift key is held.

  • RightShift

    The right shift key is held.

  • LeftControl

    The left control key is held.

  • RightControl

    The right control key is held.

  • LeftAlt

    The left alt key is held.

  • RightAlt

    The right alt key is held — AltGr on layouts that have one.

  • LeftMeta

    The left Windows/Command/Super key is held.

  • RightMeta

    The right Windows/Command/Super key is held.

  • CapsLock

    Caps Lock is on. A state, not a held key.

  • NumLock

    Num Lock is on. A state, not a held key.

  • Shift

    Either shift. See HasAny.

  • Control

    Either control. See HasAny.

  • Alt

    Either alt. See HasAny.

  • Meta

    Either Windows/Command/Super. See HasAny.

Used by (14)

  • DesktopInputSourceVixen.Platform.Desktop
  • DesktopPlatformVixen.Platform.Desktop
  • HeadlessInputSourceVixen.Platform.Headless
  • HeadlessPlatformTestsVixen.Platform.Headless.Tests
  • IInputSourceVixen.Platform
  • KeyModifierExtensionsVixen.Platform
  • PlatformEventVixen.Platform
  • PlatformEventBufferTestsVixen.Platform.Tests
  • PlatformEventTestsVixen.Platform.Tests
  • PlatformInputVixen.Platform.Ui
  • SdlTranslationVixen.Platform.Desktop
  • SdlTranslationTestsVixen.Platform.Desktop.Tests
  • PlatformInputTestsVixen.App.Tests
  • VixenApplicationTestsVixen.App.Tests