Table of Contents

Class NoOpHotkeyRegistry

Namespace
AcDream.Plugin.Abstractions
Assembly
AcDream.Plugin.Abstractions.dll

The hotkey registry a host with no keyboard hands out: it checks the arguments and returns an unbound registration.

public sealed class NoOpHotkeyRegistry : IHotkeyRegistry
Inheritance
NoOpHotkeyRegistry
Implements
Inherited Members

Properties

Instance

The shared instance; this type holds no state.

public static NoOpHotkeyRegistry Instance { get; }

Property Value

NoOpHotkeyRegistry

Methods

Register(string, string, PluginKeyChord, Action)

Registers a plugin-owned hotkey. id identifies the binding for persistence (scoped by plugin, so two plugins may each use the same id); displayName is shown in the rebind UI. A stored user override for this id replaces defaultChord when present. The handler does not fire while the chat bar has keyboard focus unless the chord includes Ctrl or Alt. Disposing the result revokes the binding; the host also revokes every hotkey a plugin registered when that plugin unloads.

public IPluginHotkeyRegistration Register(string id, string displayName, PluginKeyChord defaultChord, Action handler)

Parameters

id string
displayName string
defaultChord PluginKeyChord
handler Action

Returns

IPluginHotkeyRegistration