Skip to content

KeyLocation

Eduard Gushchin edited this page Jun 21, 2026 · 5 revisions

KeyLocation

Back to API Reference

Namespace: Electron2D

Summary

Identifies the left or right location of a keyboard key.

Declaration

public enum Electron2D.KeyLocation : System.IComparable, System.IConvertible, System.IFormattable, System.ISpanFormattable

Remarks

This is used for modifier keys such as Shift, Alt, Control and Meta where the platform can report a specific side.

This enum is immutable and is safe to use from any thread.

Since

This enum is available since Electron2D 0.1.0 Preview.

Members

Member Kind Summary
Left Enum value The key is on the left side.
Right Enum value The key is on the right side.
Unspecified Enum value The key location is not specified.

Member Details

Left

Kind: Enum value

public const Electron2D.KeyLocation Left

Summary

The key is on the left side.

Remarks

Use this value with APIs that accept KeyLocation.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.KeyLocation

Right

Kind: Enum value

public const Electron2D.KeyLocation Right

Summary

The key is on the right side.

Remarks

Use this value with APIs that accept KeyLocation.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.KeyLocation

Unspecified

Kind: Enum value

public const Electron2D.KeyLocation Unspecified

Summary

The key location is not specified.

Remarks

Use this value with APIs that accept KeyLocation.

Since

This API is available since Electron2D 0.1.0 Preview.

See Also

  • Electron2D.KeyLocation

Clone this wiki locally