Table of Contents

Class EditorKeyBinding

Namespace
RichEdit.Maui
Assembly
RichEdit.Maui.dll

Maps one exact hardware-key gesture to an application command.

public sealed record EditorKeyBinding : IEquatable<EditorKeyBinding>
Inheritance
EditorKeyBinding
Implements
Inherited Members

Constructors

EditorKeyBinding(EditorKey, EditorKeyModifiers, ICommand, object?)

Creates a key binding. A disabled command leaves native key handling available.

public EditorKeyBinding(EditorKey key, EditorKeyModifiers modifiers, ICommand command, object? commandParameter = null)

Parameters

key EditorKey

The hardware key.

modifiers EditorKeyModifiers

The exact held modifiers.

command ICommand

The command to invoke.

commandParameter object

The value passed to the command.

Properties

Command

Gets the application command.

public ICommand Command { get; }

Property Value

ICommand

CommandParameter

Gets the command parameter.

public object? CommandParameter { get; }

Property Value

object

Key

Gets the hardware key.

public EditorKey Key { get; }

Property Value

EditorKey

Modifiers

Gets the exact held modifiers.

public EditorKeyModifiers Modifiers { get; }

Property Value

EditorKeyModifiers

Methods

Equals(EditorKeyBinding?)

public bool Equals(EditorKeyBinding? other)

Parameters

other EditorKeyBinding

Returns

bool

Equals(object?)

public override bool Equals(object? obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

ToString()

public override string ToString()

Returns

string

Operators

operator ==(EditorKeyBinding?, EditorKeyBinding?)

public static bool operator ==(EditorKeyBinding? left, EditorKeyBinding? right)

Parameters

left EditorKeyBinding
right EditorKeyBinding

Returns

bool

operator !=(EditorKeyBinding?, EditorKeyBinding?)

public static bool operator !=(EditorKeyBinding? left, EditorKeyBinding? right)

Parameters

left EditorKeyBinding
right EditorKeyBinding

Returns

bool