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
keyEditorKeyThe hardware key.
modifiersEditorKeyModifiersThe exact held modifiers.
commandICommandThe command to invoke.
commandParameterobjectThe value passed to the command.
Properties
Command
Gets the application command.
public ICommand Command { get; }
Property Value
CommandParameter
Gets the command parameter.
public object? CommandParameter { get; }
Property Value
Key
Gets the hardware key.
public EditorKey Key { get; }
Property Value
Modifiers
Gets the exact held modifiers.
public EditorKeyModifiers Modifiers { get; }
Property Value
Methods
Equals(EditorKeyBinding?)
public bool Equals(EditorKeyBinding? other)
Parameters
otherEditorKeyBinding
Returns
Equals(object?)
public override bool Equals(object? obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
ToString()
public override string ToString()
Returns
Operators
operator ==(EditorKeyBinding?, EditorKeyBinding?)
public static bool operator ==(EditorKeyBinding? left, EditorKeyBinding? right)
Parameters
leftEditorKeyBindingrightEditorKeyBinding
Returns
operator !=(EditorKeyBinding?, EditorKeyBinding?)
public static bool operator !=(EditorKeyBinding? left, EditorKeyBinding? right)
Parameters
leftEditorKeyBindingrightEditorKeyBinding