kWindowsToPhysicalKey top-level constant Null safety

Map<int, PhysicalKeyboardKey> const kWindowsToPhysicalKey

Maps Windows KeyboardEvent codes to the matching PhysicalKeyboardKey.

Implementation

const Map<int, PhysicalKeyboardKey> kWindowsToPhysicalKey = <int, PhysicalKeyboardKey>{
  0x0000e05f: PhysicalKeyboardKey.sleep,
  0x0000e063: PhysicalKeyboardKey.wakeUp,
  0x000000ff: PhysicalKeyboardKey.usbErrorRollOver,
  0x000000fc: PhysicalKeyboardKey.usbPostFail,
  0x0000001e: PhysicalKeyboardKey.keyA,
  0x00000030: PhysicalKeyboardKey.keyB,
  0x0000002e: PhysicalKeyboardKey.keyC,
  0x00000020: PhysicalKeyboardKey.keyD,
  0x00000012: PhysicalKeyboardKey.keyE,
  0x00000021: PhysicalKeyboardKey.keyF,
  0x00000022: PhysicalKeyboardKey.keyG,
  0x00000023: PhysicalKeyboardKey.keyH,
  0x00000017: PhysicalKeyboardKey.keyI,
  0x00000024: PhysicalKeyboardKey.keyJ,
  0x00000025: PhysicalKeyboardKey.keyK,
  0x00000026: PhysicalKeyboardKey.keyL,
  0x00000032: PhysicalKeyboardKey.keyM,
  0x00000031: PhysicalKeyboardKey.keyN,
  0x00000018: PhysicalKeyboardKey.keyO,
  0x00000019: PhysicalKeyboardKey.keyP,
  0x00000010: PhysicalKeyboardKey.keyQ,
  0x00000013: PhysicalKeyboardKey.keyR,
  0x0000001f: PhysicalKeyboardKey.keyS,
  0x00000014: PhysicalKeyboardKey.keyT,
  0x00000016: PhysicalKeyboardKey.keyU,
  0x0000002f: PhysicalKeyboardKey.keyV,
  0x00000011: PhysicalKeyboardKey.keyW,
  0x0000002d: PhysicalKeyboardKey.keyX,
  0x00000015: PhysicalKeyboardKey.keyY,
  0x0000002c: PhysicalKeyboardKey.keyZ,
  0x00000002: PhysicalKeyboardKey.digit1,
  0x00000003: PhysicalKeyboardKey.digit2,
  0x00000004: PhysicalKeyboardKey.digit3,
  0x00000005: PhysicalKeyboardKey.digit4,
  0x00000006: PhysicalKeyboardKey.digit5,
  0x00000007: PhysicalKeyboardKey.digit6,
  0x00000008: PhysicalKeyboardKey.digit7,
  0x00000009: PhysicalKeyboardKey.digit8,
  0x0000000a: PhysicalKeyboardKey.digit9,
  0x0000000b: PhysicalKeyboardKey.digit0,
  0x0000001c: PhysicalKeyboardKey.enter,
  0x00000001: PhysicalKeyboardKey.escape,
  0x0000000e: PhysicalKeyboardKey.backspace,
  0x0000000f: PhysicalKeyboardKey.tab,
  0x00000039: PhysicalKeyboardKey.space,
  0x0000000c: PhysicalKeyboardKey.minus,
  0x0000000d: PhysicalKeyboardKey.equal,
  0x0000001a: PhysicalKeyboardKey.bracketLeft,
  0x0000001b: PhysicalKeyboardKey.bracketRight,
  0x0000002b: PhysicalKeyboardKey.backslash,
  0x00000027: PhysicalKeyboardKey.semicolon,
  0x00000028: PhysicalKeyboardKey.quote,
  0x00000029: PhysicalKeyboardKey.backquote,
  0x00000033: PhysicalKeyboardKey.comma,
  0x00000034: PhysicalKeyboardKey.period,
  0x00000035: PhysicalKeyboardKey.slash,
  0x0000003a: PhysicalKeyboardKey.capsLock,
  0x0000003b: PhysicalKeyboardKey.f1,
  0x0000003c: PhysicalKeyboardKey.f2,
  0x0000003d: PhysicalKeyboardKey.f3,
  0x0000003e: PhysicalKeyboardKey.f4,
  0x0000003f: PhysicalKeyboardKey.f5,
  0x00000040: PhysicalKeyboardKey.f6,
  0x00000041: PhysicalKeyboardKey.f7,
  0x00000042: PhysicalKeyboardKey.f8,
  0x00000043: PhysicalKeyboardKey.f9,
  0x00000044: PhysicalKeyboardKey.f10,
  0x00000057: PhysicalKeyboardKey.f11,
  0x00000058: PhysicalKeyboardKey.f12,
  0x0000e037: PhysicalKeyboardKey.printScreen,
  0x00000046: PhysicalKeyboardKey.scrollLock,
  0x00000045: PhysicalKeyboardKey.pause,
  0x0000e052: PhysicalKeyboardKey.insert,
  0x0000e047: PhysicalKeyboardKey.home,
  0x0000e049: PhysicalKeyboardKey.pageUp,
  0x0000e053: PhysicalKeyboardKey.delete,
  0x0000e04f: PhysicalKeyboardKey.end,
  0x0000e051: PhysicalKeyboardKey.pageDown,
  0x0000e04d: PhysicalKeyboardKey.arrowRight,
  0x0000e04b: PhysicalKeyboardKey.arrowLeft,
  0x0000e050: PhysicalKeyboardKey.arrowDown,
  0x0000e048: PhysicalKeyboardKey.arrowUp,
  0x0000e045: PhysicalKeyboardKey.numLock,
  0x0000e035: PhysicalKeyboardKey.numpadDivide,
  0x00000037: PhysicalKeyboardKey.numpadMultiply,
  0x0000004a: PhysicalKeyboardKey.numpadSubtract,
  0x0000004e: PhysicalKeyboardKey.numpadAdd,
  0x0000e01c: PhysicalKeyboardKey.numpadEnter,
  0x0000004f: PhysicalKeyboardKey.numpad1,
  0x00000050: PhysicalKeyboardKey.numpad2,
  0x00000051: PhysicalKeyboardKey.numpad3,
  0x0000004b: PhysicalKeyboardKey.numpad4,
  0x0000004c: PhysicalKeyboardKey.numpad5,
  0x0000004d: PhysicalKeyboardKey.numpad6,
  0x00000047: PhysicalKeyboardKey.numpad7,
  0x00000048: PhysicalKeyboardKey.numpad8,
  0x00000049: PhysicalKeyboardKey.numpad9,
  0x00000052: PhysicalKeyboardKey.numpad0,
  0x00000053: PhysicalKeyboardKey.numpadDecimal,
  0x00000056: PhysicalKeyboardKey.intlBackslash,
  0x0000e05d: PhysicalKeyboardKey.contextMenu,
  0x0000e05e: PhysicalKeyboardKey.power,
  0x00000059: PhysicalKeyboardKey.numpadEqual,
  0x00000064: PhysicalKeyboardKey.f13,
  0x00000065: PhysicalKeyboardKey.f14,
  0x00000066: PhysicalKeyboardKey.f15,
  0x00000067: PhysicalKeyboardKey.f16,
  0x00000068: PhysicalKeyboardKey.f17,
  0x00000069: PhysicalKeyboardKey.f18,
  0x0000006a: PhysicalKeyboardKey.f19,
  0x0000006b: PhysicalKeyboardKey.f20,
  0x0000006c: PhysicalKeyboardKey.f21,
  0x0000006d: PhysicalKeyboardKey.f22,
  0x0000006e: PhysicalKeyboardKey.f23,
  0x00000076: PhysicalKeyboardKey.f24,
  0x0000e03b: PhysicalKeyboardKey.help,
  0x0000e008: PhysicalKeyboardKey.undo,
  0x0000e017: PhysicalKeyboardKey.cut,
  0x0000e018: PhysicalKeyboardKey.copy,
  0x0000e00a: PhysicalKeyboardKey.paste,
  0x0000e020: PhysicalKeyboardKey.audioVolumeMute,
  0x0000e030: PhysicalKeyboardKey.audioVolumeUp,
  0x0000e02e: PhysicalKeyboardKey.audioVolumeDown,
  0x0000007e: PhysicalKeyboardKey.numpadComma,
  0x00000073: PhysicalKeyboardKey.intlRo,
  0x00000070: PhysicalKeyboardKey.kanaMode,
  0x0000007d: PhysicalKeyboardKey.intlYen,
  0x00000079: PhysicalKeyboardKey.convert,
  0x0000007b: PhysicalKeyboardKey.nonConvert,
  0x00000072: PhysicalKeyboardKey.lang1,
  0x00000071: PhysicalKeyboardKey.lang2,
  0x00000078: PhysicalKeyboardKey.lang3,
  0x00000077: PhysicalKeyboardKey.lang4,
  0x0000001d: PhysicalKeyboardKey.controlLeft,
  0x0000002a: PhysicalKeyboardKey.shiftLeft,
  0x00000038: PhysicalKeyboardKey.altLeft,
  0x0000e05b: PhysicalKeyboardKey.metaLeft,
  0x0000e01d: PhysicalKeyboardKey.controlRight,
  0x00000036: PhysicalKeyboardKey.shiftRight,
  0x0000e038: PhysicalKeyboardKey.altRight,
  0x0000e05c: PhysicalKeyboardKey.metaRight,
  0x0000e019: PhysicalKeyboardKey.mediaTrackNext,
  0x0000e010: PhysicalKeyboardKey.mediaTrackPrevious,
  0x0000e024: PhysicalKeyboardKey.mediaStop,
  0x0000e02c: PhysicalKeyboardKey.eject,
  0x0000e022: PhysicalKeyboardKey.mediaPlayPause,
  0x0000e06d: PhysicalKeyboardKey.mediaSelect,
  0x0000e06c: PhysicalKeyboardKey.launchMail,
  0x0000e021: PhysicalKeyboardKey.launchApp2,
  0x0000e06b: PhysicalKeyboardKey.launchApp1,
  0x0000e065: PhysicalKeyboardKey.browserSearch,
  0x0000e032: PhysicalKeyboardKey.browserHome,
  0x0000e06a: PhysicalKeyboardKey.browserBack,
  0x0000e069: PhysicalKeyboardKey.browserForward,
  0x0000e068: PhysicalKeyboardKey.browserStop,
  0x0000e067: PhysicalKeyboardKey.browserRefresh,
  0x0000e066: PhysicalKeyboardKey.browserFavorites,
}