KeyGestureFormatInfo Constructor
Provides platform specific formatting information for the KeyGesture class
Definition
Namespace: Avalonia.Input.Platform
Assembly: Avalonia.Base (in Avalonia.Base.dll)
- C#
- VB
- F#
public KeyGestureFormatInfo(
IReadOnlyDictionary<Key, string>? platformKeyOverrides = null,
string meta = "Cmd",
string ctrl = "Ctrl",
string alt = "Alt",
string shift = "Shift"
)
Public Sub New (
Optional platformKeyOverrides As IReadOnlyDictionary(Of Key, String) = Nothing,
Optional meta As String = "Cmd",
Optional ctrl As String = "Ctrl",
Optional alt As String = "Alt",
Optional shift As String = "Shift"
)
new :
?platformKeyOverrides : IReadOnlyDictionary<Key, string> *
?meta : string *
?ctrl : string *
?alt : string *
?shift : string
(* Defaults:
let _platformKeyOverrides = defaultArg platformKeyOverrides null
let _meta = defaultArg meta "Cmd"
let _ctrl = defaultArg ctrl "Ctrl"
let _alt = defaultArg alt "Alt"
let _shift = defaultArg shift "Shift"
*)
-> KeyGestureFormatInfo
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