Show / Hide Table of Contents

Class KeyMapping

Provides methods for mapping keys.

Inheritance
System.Object
KeyMapping
Namespace: MarcusW.VncClient.Avalonia
Assembly: MarcusW.VncClient.Avalonia.dll
Syntax
public static class KeyMapping : object

Methods

| Improve this Doc View Source

GetSymbolFromChar(Char)

Maps a printable char to a KeySymbol.

Declaration
public static KeySymbol GetSymbolFromChar(char c)
Parameters
Type Name Description
System.Char c

The char.

Returns
Type Description
KeySymbol

The X key symbol.

| Improve this Doc View Source

GetSymbolFromKey(Key, Boolean)

Maps an Avalonia to a KeySymbol.

Declaration
public static KeySymbol GetSymbolFromKey(Key key, bool includePrintable = true)
Parameters
Type Name Description
Key key

The key.

System.Boolean includePrintable

True, if printable chars should be included in the mapping, false otherwise.

Returns
Type Description
KeySymbol

The X key symbol.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX