kAndroidToLogicalKey top-level constant Null safety

Map<int, LogicalKeyboardKey> const kAndroidToLogicalKey

Maps Android-specific key codes to the matching LogicalKeyboardKey.

Implementation

const Map<int, LogicalKeyboardKey> kAndroidToLogicalKey = <int, LogicalKeyboardKey>{
  0: LogicalKeyboardKey.none,
  223: LogicalKeyboardKey.sleep,
  224: LogicalKeyboardKey.wakeUp,
  29: LogicalKeyboardKey.keyA,
  30: LogicalKeyboardKey.keyB,
  31: LogicalKeyboardKey.keyC,
  32: LogicalKeyboardKey.keyD,
  33: LogicalKeyboardKey.keyE,
  34: LogicalKeyboardKey.keyF,
  35: LogicalKeyboardKey.keyG,
  36: LogicalKeyboardKey.keyH,
  37: LogicalKeyboardKey.keyI,
  38: LogicalKeyboardKey.keyJ,
  39: LogicalKeyboardKey.keyK,
  40: LogicalKeyboardKey.keyL,
  41: LogicalKeyboardKey.keyM,
  42: LogicalKeyboardKey.keyN,
  43: LogicalKeyboardKey.keyO,
  44: LogicalKeyboardKey.keyP,
  45: LogicalKeyboardKey.keyQ,
  46: LogicalKeyboardKey.keyR,
  47: LogicalKeyboardKey.keyS,
  48: LogicalKeyboardKey.keyT,
  49: LogicalKeyboardKey.keyU,
  50: LogicalKeyboardKey.keyV,
  51: LogicalKeyboardKey.keyW,
  52: LogicalKeyboardKey.keyX,
  53: LogicalKeyboardKey.keyY,
  54: LogicalKeyboardKey.keyZ,
  8: LogicalKeyboardKey.digit1,
  9: LogicalKeyboardKey.digit2,
  10: LogicalKeyboardKey.digit3,
  11: LogicalKeyboardKey.digit4,
  12: LogicalKeyboardKey.digit5,
  13: LogicalKeyboardKey.digit6,
  14: LogicalKeyboardKey.digit7,
  15: LogicalKeyboardKey.digit8,
  16: LogicalKeyboardKey.digit9,
  7: LogicalKeyboardKey.digit0,
  66: LogicalKeyboardKey.enter,
  111: LogicalKeyboardKey.escape,
  67: LogicalKeyboardKey.backspace,
  61: LogicalKeyboardKey.tab,
  62: LogicalKeyboardKey.space,
  69: LogicalKeyboardKey.minus,
  70: LogicalKeyboardKey.equal,
  71: LogicalKeyboardKey.bracketLeft,
  72: LogicalKeyboardKey.bracketRight,
  73: LogicalKeyboardKey.backslash,
  74: LogicalKeyboardKey.semicolon,
  75: LogicalKeyboardKey.quote,
  68: LogicalKeyboardKey.backquote,
  55: LogicalKeyboardKey.comma,
  56: LogicalKeyboardKey.period,
  76: LogicalKeyboardKey.slash,
  115: LogicalKeyboardKey.capsLock,
  131: LogicalKeyboardKey.f1,
  132: LogicalKeyboardKey.f2,
  133: LogicalKeyboardKey.f3,
  134: LogicalKeyboardKey.f4,
  135: LogicalKeyboardKey.f5,
  136: LogicalKeyboardKey.f6,
  137: LogicalKeyboardKey.f7,
  138: LogicalKeyboardKey.f8,
  139: LogicalKeyboardKey.f9,
  140: LogicalKeyboardKey.f10,
  141: LogicalKeyboardKey.f11,
  142: LogicalKeyboardKey.f12,
  120: LogicalKeyboardKey.printScreen,
  116: LogicalKeyboardKey.scrollLock,
  121: LogicalKeyboardKey.pause,
  124: LogicalKeyboardKey.insert,
  122: LogicalKeyboardKey.home,
  92: LogicalKeyboardKey.pageUp,
  112: LogicalKeyboardKey.delete,
  123: LogicalKeyboardKey.end,
  93: LogicalKeyboardKey.pageDown,
  22: LogicalKeyboardKey.arrowRight,
  21: LogicalKeyboardKey.arrowLeft,
  20: LogicalKeyboardKey.arrowDown,
  19: LogicalKeyboardKey.arrowUp,
  143: LogicalKeyboardKey.numLock,
  154: LogicalKeyboardKey.numpadDivide,
  155: LogicalKeyboardKey.numpadMultiply,
  156: LogicalKeyboardKey.numpadSubtract,
  157: LogicalKeyboardKey.numpadAdd,
  160: LogicalKeyboardKey.numpadEnter,
  145: LogicalKeyboardKey.numpad1,
  146: LogicalKeyboardKey.numpad2,
  147: LogicalKeyboardKey.numpad3,
  148: LogicalKeyboardKey.numpad4,
  149: LogicalKeyboardKey.numpad5,
  150: LogicalKeyboardKey.numpad6,
  151: LogicalKeyboardKey.numpad7,
  152: LogicalKeyboardKey.numpad8,
  153: LogicalKeyboardKey.numpad9,
  144: LogicalKeyboardKey.numpad0,
  158: LogicalKeyboardKey.numpadDecimal,
  82: LogicalKeyboardKey.contextMenu,
  26: LogicalKeyboardKey.power,
  161: LogicalKeyboardKey.numpadEqual,
  259: LogicalKeyboardKey.help,
  23: LogicalKeyboardKey.select,
  277: LogicalKeyboardKey.cut,
  278: LogicalKeyboardKey.copy,
  279: LogicalKeyboardKey.paste,
  164: LogicalKeyboardKey.audioVolumeMute,
  24: LogicalKeyboardKey.audioVolumeUp,
  25: LogicalKeyboardKey.audioVolumeDown,
  159: LogicalKeyboardKey.numpadComma,
  214: LogicalKeyboardKey.convert,
  213: LogicalKeyboardKey.nonConvert,
  162: LogicalKeyboardKey.numpadParenLeft,
  163: LogicalKeyboardKey.numpadParenRight,
  113: LogicalKeyboardKey.controlLeft,
  59: LogicalKeyboardKey.shiftLeft,
  57: LogicalKeyboardKey.altLeft,
  117: LogicalKeyboardKey.metaLeft,
  114: LogicalKeyboardKey.controlRight,
  60: LogicalKeyboardKey.shiftRight,
  58: LogicalKeyboardKey.altRight,
  118: LogicalKeyboardKey.metaRight,
  165: LogicalKeyboardKey.info,
  175: LogicalKeyboardKey.closedCaptionToggle,
  221: LogicalKeyboardKey.brightnessUp,
  220: LogicalKeyboardKey.brightnessDown,
  229: LogicalKeyboardKey.mediaLast,
  166: LogicalKeyboardKey.channelUp,
  167: LogicalKeyboardKey.channelDown,
  126: LogicalKeyboardKey.mediaPlay,
  127: LogicalKeyboardKey.mediaPause,
  130: LogicalKeyboardKey.mediaRecord,
  90: LogicalKeyboardKey.mediaFastForward,
  89: LogicalKeyboardKey.mediaRewind,
  87: LogicalKeyboardKey.mediaTrackNext,
  88: LogicalKeyboardKey.mediaTrackPrevious,
  86: LogicalKeyboardKey.mediaStop,
  129: LogicalKeyboardKey.eject,
  85: LogicalKeyboardKey.mediaPlayPause,
  65: LogicalKeyboardKey.launchMail,
  207: LogicalKeyboardKey.launchContacts,
  208: LogicalKeyboardKey.launchCalendar,
  219: LogicalKeyboardKey.launchAssistant,
  128: LogicalKeyboardKey.close,
  84: LogicalKeyboardKey.browserSearch,
  125: LogicalKeyboardKey.browserForward,
  174: LogicalKeyboardKey.browserFavorites,
  168: LogicalKeyboardKey.zoomIn,
  169: LogicalKeyboardKey.zoomOut,
  255: LogicalKeyboardKey.zoomToggle,
  188: LogicalKeyboardKey.gameButton1,
  189: LogicalKeyboardKey.gameButton2,
  190: LogicalKeyboardKey.gameButton3,
  191: LogicalKeyboardKey.gameButton4,
  192: LogicalKeyboardKey.gameButton5,
  193: LogicalKeyboardKey.gameButton6,
  194: LogicalKeyboardKey.gameButton7,
  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,
  96: LogicalKeyboardKey.gameButtonA,
  97: LogicalKeyboardKey.gameButtonB,
  98: LogicalKeyboardKey.gameButtonC,
  102: LogicalKeyboardKey.gameButtonLeft1,
  104: LogicalKeyboardKey.gameButtonLeft2,
  110: LogicalKeyboardKey.gameButtonMode,
  103: LogicalKeyboardKey.gameButtonRight1,
  105: LogicalKeyboardKey.gameButtonRight2,
  109: LogicalKeyboardKey.gameButtonSelect,
  108: LogicalKeyboardKey.gameButtonStart,
  106: LogicalKeyboardKey.gameButtonThumbLeft,
  107: LogicalKeyboardKey.gameButtonThumbRight,
  99: LogicalKeyboardKey.gameButtonX,
  100: LogicalKeyboardKey.gameButtonY,
  101: LogicalKeyboardKey.gameButtonZ,
  119: LogicalKeyboardKey.fn,
}