Skip to main content

KeyGestureFormatInfo Constructor

Provides platform specific formatting information for the KeyGesture class

Definition

Namespace: Avalonia.Input.Platform
Assembly: Avalonia.Base (in Avalonia.Base.dll)

public KeyGestureFormatInfo(
IReadOnlyDictionary<Key, string>? platformKeyOverrides = null,
string meta = "Cmd",
string ctrl = "Ctrl",
string alt = "Alt",
string shift = "Shift"
)

Parameters

  IReadOnlyDictionary(Key, String)  (Optional)
A dictionary of Key to String overrides for specific characters, for example Key.Left to "Left Arrow" or "←" on Mac. A null value is assumed to be the Invariant, so the included set of common overrides will be skipped if this is null. If only the common overrides are desired, pass an empty Dictionary instead.
  String  (Optional)
The string to use for the Meta modifier, defaults to "Cmd"
  String  (Optional)
The string to use for the Ctrl modifier, defaults to "Ctrl"
  String  (Optional)
The string to use for the Alt modifier, defaults to "Alt"
  String  (Optional)
The string to use for the Shift modifier, defaults to "Shift"

See Also

Reference

KeyGestureFormatInfo Class
Avalonia.Input.Platform Namespace