Table of Contents

Class PlatformKeyBinding

Namespace
Terminal.Gui
Assembly
Terminal.Gui.dll

Defines the keys for a single command, optionally varying by platform. Keys are additive — for example, on Linux both All and Linux keys apply.

public record PlatformKeyBinding : IEquatable<PlatformKeyBinding>
Inheritance
PlatformKeyBinding
Implements
Inherited Members

Constructors

PlatformKeyBinding()
PlatformKeyBinding(PlatformKeyBinding)

Properties

All

Gets or sets keys that apply on all platforms.

EqualityContract
Linux

Gets or sets additional keys for Linux only.

Macos

Gets or sets additional keys for macOS only.

Windows

Gets or sets additional keys for Windows only.

Methods

Equals(object?)
Equals(PlatformKeyBinding?)
GetCurrentPlatformKeys()

Returns the keys applicable to the current operating system. Yields all All keys followed by the platform-specific keys.

GetHashCode()
PrintMembers(StringBuilder)
ToString()

Operators

operator ==(PlatformKeyBinding?, PlatformKeyBinding?)
operator !=(PlatformKeyBinding?, PlatformKeyBinding?)