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 SourceGetSymbolFromChar(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. |
GetSymbolFromKey(Key, Boolean)
Maps an Avalonia
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. |