DesktopGlobalShortcutBinding record

Namespace Runic.Platform in Runic.Platform 0.23.0

public sealed record DesktopGlobalShortcutBinding : IEquatable<DesktopGlobalShortcutBinding>

Inherits or implements IEquatable.

The outcome of binding one DesktopGlobalShortcut.

Parameters

Id

The action's DesktopGlobalShortcut.Id.

Constructors

DesktopGlobalShortcutBinding

public DesktopGlobalShortcutBinding(string Id)

The outcome of binding one DesktopGlobalShortcut.

Parameters

Id

The action's DesktopGlobalShortcut.Id.

Properties

Id

public string Id { get; init; }

Shortcut

public DesktopShortcut? Shortcut { get; init; }

Gets the bound key, or null when none is bound or the desktop's key has no DesktopShortcut form.

Remarks

For DesktopGlobalShortcutStatus.Conflict and DesktopGlobalShortcutStatus.Refused it is the requested key, so the application can tell the user which one failed.

Status

public DesktopGlobalShortcutStatus Status { get; init; }

Gets whether the key is bound.

TriggerDescription

public string? TriggerDescription { get; init; }

Gets the key as the user sees it: the Linux desktop's own text, elsewhere DesktopShortcut.ToDisplayString; null when no key is assigned.