Class PhysicalKeyExtensions
Contains extension methods related to PhysicalKey.
public static class PhysicalKeyExtensions
- Inheritance
-
PhysicalKeyExtensions
- Inherited Members
Methods
ToQwertyKey(PhysicalKey)
Maps a physical key to a corresponding key, if possible, on a QWERTY keyboard.
public static Key ToQwertyKey(this PhysicalKey physicalKey)
Parameters
physicalKey
PhysicalKeythe physical key to map.
Returns
ToQwertyKeySymbol(PhysicalKey, bool)
Maps a physical key to a corresponding key symbol, if possible, on a QWERTY keyboard.
public static string? ToQwertyKeySymbol(this PhysicalKey physicalKey, bool useShiftModifier = false)
Parameters
physicalKey
PhysicalKeythe physical key to map.
useShiftModifier
boolIndicates whether the Shift key is considered pressed.