kWindowsToPhysicalKey top-level constant

Map<int, PhysicalKeyboardKey> const kWindowsToPhysicalKey

Maps Windows KeyboardEvent codes to the matching PhysicalKeyboardKey.

Implementation

const Map<int, PhysicalKeyboardKey> kWindowsToPhysicalKey = <int, PhysicalKeyboardKey>{
  1: PhysicalKeyboardKey.escape,
  2: PhysicalKeyboardKey.digit1,
  3: PhysicalKeyboardKey.digit2,
  4: PhysicalKeyboardKey.digit3,
  5: PhysicalKeyboardKey.digit4,
  6: PhysicalKeyboardKey.digit5,
  7: PhysicalKeyboardKey.digit6,
  8: PhysicalKeyboardKey.digit7,
  9: PhysicalKeyboardKey.digit8,
  10: PhysicalKeyboardKey.digit9,
  11: PhysicalKeyboardKey.digit0,
  12: PhysicalKeyboardKey.minus,
  13: PhysicalKeyboardKey.equal,
  14: PhysicalKeyboardKey.backspace,
  15: PhysicalKeyboardKey.tab,
  16: PhysicalKeyboardKey.keyQ,
  17: PhysicalKeyboardKey.keyW,
  18: PhysicalKeyboardKey.keyE,
  19: PhysicalKeyboardKey.keyR,
  20: PhysicalKeyboardKey.keyT,
  21: PhysicalKeyboardKey.keyY,
  22: PhysicalKeyboardKey.keyU,
  23: PhysicalKeyboardKey.keyI,
  24: PhysicalKeyboardKey.keyO,
  25: PhysicalKeyboardKey.keyP,
  26: PhysicalKeyboardKey.bracketLeft,
  27: PhysicalKeyboardKey.bracketRight,
  28: PhysicalKeyboardKey.enter,
  29: PhysicalKeyboardKey.controlLeft,
  30: PhysicalKeyboardKey.keyA,
  31: PhysicalKeyboardKey.keyS,
  32: PhysicalKeyboardKey.keyD,
  33: PhysicalKeyboardKey.keyF,
  34: PhysicalKeyboardKey.keyG,
  35: PhysicalKeyboardKey.keyH,
  36: PhysicalKeyboardKey.keyJ,
  37: PhysicalKeyboardKey.keyK,
  38: PhysicalKeyboardKey.keyL,
  39: PhysicalKeyboardKey.semicolon,
  40: PhysicalKeyboardKey.quote,
  41: PhysicalKeyboardKey.backquote,
  42: PhysicalKeyboardKey.shiftLeft,
  43: PhysicalKeyboardKey.backslash,
  44: PhysicalKeyboardKey.keyZ,
  45: PhysicalKeyboardKey.keyX,
  46: PhysicalKeyboardKey.keyC,
  47: PhysicalKeyboardKey.keyV,
  48: PhysicalKeyboardKey.keyB,
  49: PhysicalKeyboardKey.keyN,
  50: PhysicalKeyboardKey.keyM,
  51: PhysicalKeyboardKey.comma,
  52: PhysicalKeyboardKey.period,
  53: PhysicalKeyboardKey.slash,
  54: PhysicalKeyboardKey.shiftRight,
  55: PhysicalKeyboardKey.numpadMultiply,
  56: PhysicalKeyboardKey.altLeft,
  57: PhysicalKeyboardKey.space,
  58: PhysicalKeyboardKey.capsLock,
  59: PhysicalKeyboardKey.f1,
  60: PhysicalKeyboardKey.f2,
  61: PhysicalKeyboardKey.f3,
  62: PhysicalKeyboardKey.f4,
  63: PhysicalKeyboardKey.f5,
  64: PhysicalKeyboardKey.f6,
  65: PhysicalKeyboardKey.f7,
  66: PhysicalKeyboardKey.f8,
  67: PhysicalKeyboardKey.f9,
  68: PhysicalKeyboardKey.f10,
  69: PhysicalKeyboardKey.pause,
  70: PhysicalKeyboardKey.scrollLock,
  71: PhysicalKeyboardKey.numpad7,
  72: PhysicalKeyboardKey.numpad8,
  73: PhysicalKeyboardKey.numpad9,
  74: PhysicalKeyboardKey.numpadSubtract,
  75: PhysicalKeyboardKey.numpad4,
  76: PhysicalKeyboardKey.numpad5,
  77: PhysicalKeyboardKey.numpad6,
  78: PhysicalKeyboardKey.numpadAdd,
  79: PhysicalKeyboardKey.numpad1,
  80: PhysicalKeyboardKey.numpad2,
  81: PhysicalKeyboardKey.numpad3,
  82: PhysicalKeyboardKey.numpad0,
  83: PhysicalKeyboardKey.numpadDecimal,
  86: PhysicalKeyboardKey.intlBackslash,
  87: PhysicalKeyboardKey.f11,
  88: PhysicalKeyboardKey.f12,
  89: PhysicalKeyboardKey.numpadEqual,
  100: PhysicalKeyboardKey.f13,
  101: PhysicalKeyboardKey.f14,
  102: PhysicalKeyboardKey.f15,
  103: PhysicalKeyboardKey.f16,
  104: PhysicalKeyboardKey.f17,
  105: PhysicalKeyboardKey.f18,
  106: PhysicalKeyboardKey.f19,
  107: PhysicalKeyboardKey.f20,
  108: PhysicalKeyboardKey.f21,
  109: PhysicalKeyboardKey.f22,
  110: PhysicalKeyboardKey.f23,
  112: PhysicalKeyboardKey.kanaMode,
  113: PhysicalKeyboardKey.lang2,
  114: PhysicalKeyboardKey.lang1,
  115: PhysicalKeyboardKey.intlRo,
  118: PhysicalKeyboardKey.f24,
  119: PhysicalKeyboardKey.lang4,
  120: PhysicalKeyboardKey.lang3,
  121: PhysicalKeyboardKey.convert,
  123: PhysicalKeyboardKey.nonConvert,
  125: PhysicalKeyboardKey.intlYen,
  126: PhysicalKeyboardKey.numpadComma,
  252: PhysicalKeyboardKey.usbPostFail,
  255: PhysicalKeyboardKey.usbErrorRollOver,
  57352: PhysicalKeyboardKey.undo,
  57354: PhysicalKeyboardKey.paste,
  57360: PhysicalKeyboardKey.mediaTrackPrevious,
  57367: PhysicalKeyboardKey.cut,
  57368: PhysicalKeyboardKey.copy,
  57369: PhysicalKeyboardKey.mediaTrackNext,
  57372: PhysicalKeyboardKey.numpadEnter,
  57373: PhysicalKeyboardKey.controlRight,
  57376: PhysicalKeyboardKey.audioVolumeMute,
  57377: PhysicalKeyboardKey.launchApp2,
  57378: PhysicalKeyboardKey.mediaPlayPause,
  57380: PhysicalKeyboardKey.mediaStop,
  57388: PhysicalKeyboardKey.eject,
  57390: PhysicalKeyboardKey.audioVolumeDown,
  57392: PhysicalKeyboardKey.audioVolumeUp,
  57394: PhysicalKeyboardKey.browserHome,
  57397: PhysicalKeyboardKey.numpadDivide,
  57399: PhysicalKeyboardKey.printScreen,
  57400: PhysicalKeyboardKey.altRight,
  57403: PhysicalKeyboardKey.help,
  57413: PhysicalKeyboardKey.numLock,
  57415: PhysicalKeyboardKey.home,
  57416: PhysicalKeyboardKey.arrowUp,
  57417: PhysicalKeyboardKey.pageUp,
  57419: PhysicalKeyboardKey.arrowLeft,
  57421: PhysicalKeyboardKey.arrowRight,
  57423: PhysicalKeyboardKey.end,
  57424: PhysicalKeyboardKey.arrowDown,
  57425: PhysicalKeyboardKey.pageDown,
  57426: PhysicalKeyboardKey.insert,
  57427: PhysicalKeyboardKey.delete,
  57435: PhysicalKeyboardKey.metaLeft,
  57436: PhysicalKeyboardKey.metaRight,
  57437: PhysicalKeyboardKey.contextMenu,
  57438: PhysicalKeyboardKey.power,
  57439: PhysicalKeyboardKey.sleep,
  57443: PhysicalKeyboardKey.wakeUp,
  57445: PhysicalKeyboardKey.browserSearch,
  57446: PhysicalKeyboardKey.browserFavorites,
  57447: PhysicalKeyboardKey.browserRefresh,
  57448: PhysicalKeyboardKey.browserStop,
  57449: PhysicalKeyboardKey.browserForward,
  57450: PhysicalKeyboardKey.browserBack,
  57451: PhysicalKeyboardKey.launchApp1,
  57452: PhysicalKeyboardKey.launchMail,
  57453: PhysicalKeyboardKey.mediaSelect,
};