Table of Contents

Method SetDefaultKeyBinding

Namespace
Terminal.Gui.App
Assembly
Terminal.Gui.dll

SetDefaultKeyBinding(Command, PlatformKeyBinding)

Sets (or replaces) the key binding for a single command in DefaultKeyBindings and raises DefaultKeyBindingsChanged so that subscribers (e.g. ApplicationKeyboard) pick up the change immediately.

public static void SetDefaultKeyBinding(Command command, PlatformKeyBinding binding)

Parameters

command Command

The command whose binding should be set.

binding PlatformKeyBinding

The platform key binding to associate with command.