kWindowsToLogicalKey top-level constant

Map<int, LogicalKeyboardKey> const kWindowsToLogicalKey

Maps Windows KeyboardEvent codes to the matching LogicalKeyboardKey.

Implementation

const Map<int, LogicalKeyboardKey> kWindowsToLogicalKey = <int, LogicalKeyboardKey>{
  95: LogicalKeyboardKey.sleep,
  65: LogicalKeyboardKey.keyA,
  66: LogicalKeyboardKey.keyB,
  67: LogicalKeyboardKey.keyC,
  68: LogicalKeyboardKey.keyD,
  69: LogicalKeyboardKey.keyE,
  70: LogicalKeyboardKey.keyF,
  71: LogicalKeyboardKey.keyG,
  72: LogicalKeyboardKey.keyH,
  73: LogicalKeyboardKey.keyI,
  74: LogicalKeyboardKey.keyJ,
  75: LogicalKeyboardKey.keyK,
  76: LogicalKeyboardKey.keyL,
  77: LogicalKeyboardKey.keyM,
  78: LogicalKeyboardKey.keyN,
  79: LogicalKeyboardKey.keyO,
  80: LogicalKeyboardKey.keyP,
  81: LogicalKeyboardKey.keyQ,
  82: LogicalKeyboardKey.keyR,
  83: LogicalKeyboardKey.keyS,
  84: LogicalKeyboardKey.keyT,
  85: LogicalKeyboardKey.keyU,
  86: LogicalKeyboardKey.keyV,
  87: LogicalKeyboardKey.keyW,
  88: LogicalKeyboardKey.keyX,
  89: LogicalKeyboardKey.keyY,
  90: LogicalKeyboardKey.keyZ,
  13: LogicalKeyboardKey.enter,
  27: LogicalKeyboardKey.escape,
  8: LogicalKeyboardKey.backspace,
  9: LogicalKeyboardKey.tab,
  32: LogicalKeyboardKey.space,
  189: LogicalKeyboardKey.minus,
  187: LogicalKeyboardKey.equal,
  219: LogicalKeyboardKey.bracketLeft,
  221: LogicalKeyboardKey.bracketRight,
  220: LogicalKeyboardKey.backslash,
  186: LogicalKeyboardKey.semicolon,
  222: LogicalKeyboardKey.quote,
  188: LogicalKeyboardKey.comma,
  190: LogicalKeyboardKey.period,
  191: LogicalKeyboardKey.slash,
  20: LogicalKeyboardKey.capsLock,
  112: LogicalKeyboardKey.f1,
  113: LogicalKeyboardKey.f2,
  114: LogicalKeyboardKey.f3,
  115: LogicalKeyboardKey.f4,
  116: LogicalKeyboardKey.f5,
  117: LogicalKeyboardKey.f6,
  118: LogicalKeyboardKey.f7,
  119: LogicalKeyboardKey.f8,
  120: LogicalKeyboardKey.f9,
  121: LogicalKeyboardKey.f10,
  122: LogicalKeyboardKey.f11,
  123: LogicalKeyboardKey.f12,
  19: LogicalKeyboardKey.pause,
  45: LogicalKeyboardKey.insert,
  36: LogicalKeyboardKey.home,
  46: LogicalKeyboardKey.delete,
  35: LogicalKeyboardKey.end,
  39: LogicalKeyboardKey.arrowRight,
  37: LogicalKeyboardKey.arrowLeft,
  40: LogicalKeyboardKey.arrowDown,
  38: LogicalKeyboardKey.arrowUp,
  111: LogicalKeyboardKey.numpadDivide,
  106: LogicalKeyboardKey.numpadMultiply,
  109: LogicalKeyboardKey.numpadSubtract,
  107: LogicalKeyboardKey.numpadAdd,
  97: LogicalKeyboardKey.numpad1,
  98: LogicalKeyboardKey.numpad2,
  99: LogicalKeyboardKey.numpad3,
  100: LogicalKeyboardKey.numpad4,
  101: LogicalKeyboardKey.numpad5,
  102: LogicalKeyboardKey.numpad6,
  103: LogicalKeyboardKey.numpad7,
  104: LogicalKeyboardKey.numpad8,
  105: LogicalKeyboardKey.numpad9,
  96: LogicalKeyboardKey.numpad0,
  110: LogicalKeyboardKey.numpadDecimal,
  146: LogicalKeyboardKey.numpadEqual,
  124: LogicalKeyboardKey.f13,
  125: LogicalKeyboardKey.f14,
  126: LogicalKeyboardKey.f15,
  127: LogicalKeyboardKey.f16,
  128: LogicalKeyboardKey.f17,
  129: LogicalKeyboardKey.f18,
  130: LogicalKeyboardKey.f19,
  131: LogicalKeyboardKey.f20,
  132: LogicalKeyboardKey.f21,
  133: LogicalKeyboardKey.f22,
  134: LogicalKeyboardKey.f23,
  135: LogicalKeyboardKey.f24,
  47: LogicalKeyboardKey.help,
  41: LogicalKeyboardKey.select,
  28: LogicalKeyboardKey.convert,
  162: LogicalKeyboardKey.controlLeft,
  160: LogicalKeyboardKey.shiftLeft,
  164: LogicalKeyboardKey.altLeft,
  91: LogicalKeyboardKey.metaLeft,
  163: LogicalKeyboardKey.controlRight,
  161: LogicalKeyboardKey.shiftRight,
  165: LogicalKeyboardKey.altRight,
  92: LogicalKeyboardKey.metaRight,
  178: LogicalKeyboardKey.mediaStop,
  179: LogicalKeyboardKey.mediaPlayPause,
  180: LogicalKeyboardKey.launchMail,
  183: LogicalKeyboardKey.launchApp2,
  182: LogicalKeyboardKey.launchApp1,
  42: LogicalKeyboardKey.print,
  170: LogicalKeyboardKey.browserSearch,
  172: LogicalKeyboardKey.browserHome,
  166: LogicalKeyboardKey.browserBack,
  167: LogicalKeyboardKey.browserForward,
  169: LogicalKeyboardKey.browserStop,
  168: LogicalKeyboardKey.browserRefresh,
  171: LogicalKeyboardKey.browserFavorites,
}