Skip to main content

GetKeySymbol Method

Gets a key symbol from a Windows virtual-key and key data.

Definition

Namespace: Avalonia.Win32.Input
Assembly: Avalonia.Win32 (in Avalonia.Win32.dll)

public static string? GetKeySymbol(
int virtualKey,
int keyData
)

Parameters

  Int32
The Windows virtual-key.
  Int32
The key data (in the same format as lParam for WM_KEYDOWN).

Return Value

String
A key symbol, or null if none matched.

See Also

Reference

KeyInterop Class
Avalonia.Win32.Input Namespace