kWindowsToLogicalKey top-level constant Null safety

Map<int, LogicalKeyboardKey> const kWindowsToLogicalKey

Maps Windows KeyboardEvent codes to the matching LogicalKeyboardKey.

Implementation

const Map<int, LogicalKeyboardKey> kWindowsToLogicalKey = <int, LogicalKeyboardKey>{
  3: LogicalKeyboardKey.cancel,
  8: LogicalKeyboardKey.backspace,
  9: LogicalKeyboardKey.tab,
  12: LogicalKeyboardKey.clear,
  13: LogicalKeyboardKey.enter,
  16: LogicalKeyboardKey.shiftLeft,
  17: LogicalKeyboardKey.controlLeft,
  19: LogicalKeyboardKey.pause,
  20: LogicalKeyboardKey.capsLock,
  21: LogicalKeyboardKey.lang1,
  23: LogicalKeyboardKey.junjaMode,
  24: LogicalKeyboardKey.finalMode,
  25: LogicalKeyboardKey.kanjiMode,
  27: LogicalKeyboardKey.escape,
  28: LogicalKeyboardKey.convert,
  30: LogicalKeyboardKey.accept,
  31: LogicalKeyboardKey.modeChange,
  32: LogicalKeyboardKey.space,
  33: LogicalKeyboardKey.pageUp,
  34: LogicalKeyboardKey.pageDown,
  35: LogicalKeyboardKey.end,
  36: LogicalKeyboardKey.home,
  37: LogicalKeyboardKey.arrowLeft,
  38: LogicalKeyboardKey.arrowUp,
  39: LogicalKeyboardKey.arrowRight,
  40: LogicalKeyboardKey.arrowDown,
  41: LogicalKeyboardKey.select,
  42: LogicalKeyboardKey.print,
  43: LogicalKeyboardKey.execute,
  44: LogicalKeyboardKey.printScreen,
  45: LogicalKeyboardKey.insert,
  46: LogicalKeyboardKey.delete,
  47: LogicalKeyboardKey.help,
  48: LogicalKeyboardKey.digit0,
  49: LogicalKeyboardKey.digit1,
  50: LogicalKeyboardKey.digit2,
  51: LogicalKeyboardKey.digit3,
  52: LogicalKeyboardKey.digit4,
  53: LogicalKeyboardKey.digit5,
  54: LogicalKeyboardKey.digit6,
  55: LogicalKeyboardKey.digit7,
  56: LogicalKeyboardKey.digit8,
  57: LogicalKeyboardKey.digit9,
  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,
  91: LogicalKeyboardKey.metaLeft,
  92: LogicalKeyboardKey.metaRight,
  93: LogicalKeyboardKey.contextMenu,
  95: LogicalKeyboardKey.sleep,
  96: LogicalKeyboardKey.numpad0,
  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,
  106: LogicalKeyboardKey.numpadMultiply,
  107: LogicalKeyboardKey.numpadAdd,
  108: LogicalKeyboardKey.numpadComma,
  109: LogicalKeyboardKey.numpadSubtract,
  110: LogicalKeyboardKey.numpadDecimal,
  111: LogicalKeyboardKey.numpadDivide,
  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,
  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,
  144: LogicalKeyboardKey.numLock,
  145: LogicalKeyboardKey.scrollLock,
  146: LogicalKeyboardKey.numpadEqual,
  160: LogicalKeyboardKey.shiftLeft,
  161: LogicalKeyboardKey.shiftRight,
  162: LogicalKeyboardKey.controlLeft,
  163: LogicalKeyboardKey.controlRight,
  164: LogicalKeyboardKey.altLeft,
  165: LogicalKeyboardKey.altRight,
  166: LogicalKeyboardKey.browserBack,
  167: LogicalKeyboardKey.browserForward,
  168: LogicalKeyboardKey.browserRefresh,
  169: LogicalKeyboardKey.browserStop,
  170: LogicalKeyboardKey.browserSearch,
  171: LogicalKeyboardKey.browserFavorites,
  172: LogicalKeyboardKey.browserHome,
  173: LogicalKeyboardKey.audioVolumeMute,
  174: LogicalKeyboardKey.audioVolumeDown,
  175: LogicalKeyboardKey.audioVolumeUp,
  178: LogicalKeyboardKey.mediaStop,
  179: LogicalKeyboardKey.mediaPlayPause,
  180: LogicalKeyboardKey.launchMail,
  186: LogicalKeyboardKey.semicolon,
  187: LogicalKeyboardKey.equal,
  188: LogicalKeyboardKey.comma,
  189: LogicalKeyboardKey.minus,
  190: LogicalKeyboardKey.period,
  191: LogicalKeyboardKey.slash,
  192: LogicalKeyboardKey.backquote,
  195: LogicalKeyboardKey.gameButton8,
  196: LogicalKeyboardKey.gameButton9,
  197: LogicalKeyboardKey.gameButton10,
  198: LogicalKeyboardKey.gameButton11,
  199: LogicalKeyboardKey.gameButton12,
  200: LogicalKeyboardKey.gameButton13,
  201: LogicalKeyboardKey.gameButton14,
  202: LogicalKeyboardKey.gameButton15,
  203: LogicalKeyboardKey.gameButton16,
  219: LogicalKeyboardKey.bracketLeft,
  220: LogicalKeyboardKey.backslash,
  221: LogicalKeyboardKey.bracketRight,
  222: LogicalKeyboardKey.quote,
  246: LogicalKeyboardKey.attn,
  250: LogicalKeyboardKey.play,
};