kAndroidToLogicalKey top-level constant

Map<int, LogicalKeyboardKey> const kAndroidToLogicalKey

Maps Android-specific key codes to the matching LogicalKeyboardKey.

Implementation

const Map<int, LogicalKeyboardKey> kAndroidToLogicalKey = <int, LogicalKeyboardKey>{
  3: LogicalKeyboardKey.goHome,
  4: LogicalKeyboardKey.goBack,
  5: LogicalKeyboardKey.call,
  6: LogicalKeyboardKey.endCall,
  7: LogicalKeyboardKey.digit0,
  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,
  17: LogicalKeyboardKey.asterisk,
  18: LogicalKeyboardKey.numberSign,
  19: LogicalKeyboardKey.arrowUp,
  20: LogicalKeyboardKey.arrowDown,
  21: LogicalKeyboardKey.arrowLeft,
  22: LogicalKeyboardKey.arrowRight,
  23: LogicalKeyboardKey.select,
  24: LogicalKeyboardKey.audioVolumeUp,
  25: LogicalKeyboardKey.audioVolumeDown,
  26: LogicalKeyboardKey.power,
  27: LogicalKeyboardKey.camera,
  28: LogicalKeyboardKey.clear,
  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,
  55: LogicalKeyboardKey.comma,
  56: LogicalKeyboardKey.period,
  57: LogicalKeyboardKey.altLeft,
  58: LogicalKeyboardKey.altRight,
  59: LogicalKeyboardKey.shiftLeft,
  60: LogicalKeyboardKey.shiftRight,
  61: LogicalKeyboardKey.tab,
  62: LogicalKeyboardKey.space,
  63: LogicalKeyboardKey.symbol,
  64: LogicalKeyboardKey.launchWebBrowser,
  65: LogicalKeyboardKey.launchMail,
  66: LogicalKeyboardKey.enter,
  67: LogicalKeyboardKey.backspace,
  68: LogicalKeyboardKey.backquote,
  69: LogicalKeyboardKey.minus,
  70: LogicalKeyboardKey.equal,
  71: LogicalKeyboardKey.bracketLeft,
  72: LogicalKeyboardKey.bracketRight,
  73: LogicalKeyboardKey.backslash,
  74: LogicalKeyboardKey.semicolon,
  75: LogicalKeyboardKey.quote,
  76: LogicalKeyboardKey.slash,
  77: LogicalKeyboardKey.at,
  79: LogicalKeyboardKey.headsetHook,
  80: LogicalKeyboardKey.cameraFocus,
  81: LogicalKeyboardKey.add,
  82: LogicalKeyboardKey.contextMenu,
  83: LogicalKeyboardKey.notification,
  84: LogicalKeyboardKey.browserSearch,
  85: LogicalKeyboardKey.mediaPlayPause,
  86: LogicalKeyboardKey.mediaStop,
  87: LogicalKeyboardKey.mediaTrackNext,
  88: LogicalKeyboardKey.mediaTrackPrevious,
  89: LogicalKeyboardKey.mediaRewind,
  90: LogicalKeyboardKey.mediaFastForward,
  91: LogicalKeyboardKey.microphoneVolumeMute,
  92: LogicalKeyboardKey.pageUp,
  93: LogicalKeyboardKey.pageDown,
  95: LogicalKeyboardKey.modeChange,
  96: LogicalKeyboardKey.gameButtonA,
  97: LogicalKeyboardKey.gameButtonB,
  98: LogicalKeyboardKey.gameButtonC,
  99: LogicalKeyboardKey.gameButtonX,
  100: LogicalKeyboardKey.gameButtonY,
  101: LogicalKeyboardKey.gameButtonZ,
  102: LogicalKeyboardKey.gameButtonLeft1,
  103: LogicalKeyboardKey.gameButtonRight1,
  104: LogicalKeyboardKey.gameButtonLeft2,
  105: LogicalKeyboardKey.gameButtonRight2,
  106: LogicalKeyboardKey.gameButtonThumbLeft,
  107: LogicalKeyboardKey.gameButtonThumbRight,
  108: LogicalKeyboardKey.gameButtonStart,
  109: LogicalKeyboardKey.gameButtonSelect,
  110: LogicalKeyboardKey.gameButtonMode,
  111: LogicalKeyboardKey.escape,
  112: LogicalKeyboardKey.delete,
  113: LogicalKeyboardKey.controlLeft,
  114: LogicalKeyboardKey.controlRight,
  115: LogicalKeyboardKey.capsLock,
  116: LogicalKeyboardKey.scrollLock,
  117: LogicalKeyboardKey.metaLeft,
  118: LogicalKeyboardKey.metaRight,
  119: LogicalKeyboardKey.fn,
  120: LogicalKeyboardKey.printScreen,
  121: LogicalKeyboardKey.pause,
  122: LogicalKeyboardKey.home,
  123: LogicalKeyboardKey.end,
  124: LogicalKeyboardKey.insert,
  125: LogicalKeyboardKey.browserForward,
  126: LogicalKeyboardKey.mediaPlay,
  127: LogicalKeyboardKey.mediaPause,
  128: LogicalKeyboardKey.close,
  129: LogicalKeyboardKey.eject,
  130: LogicalKeyboardKey.mediaRecord,
  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,
  143: LogicalKeyboardKey.numLock,
  144: LogicalKeyboardKey.numpad0,
  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,
  154: LogicalKeyboardKey.numpadDivide,
  155: LogicalKeyboardKey.numpadMultiply,
  156: LogicalKeyboardKey.numpadSubtract,
  157: LogicalKeyboardKey.numpadAdd,
  158: LogicalKeyboardKey.numpadDecimal,
  159: LogicalKeyboardKey.numpadComma,
  160: LogicalKeyboardKey.numpadEnter,
  161: LogicalKeyboardKey.numpadEqual,
  162: LogicalKeyboardKey.numpadParenLeft,
  163: LogicalKeyboardKey.numpadParenRight,
  164: LogicalKeyboardKey.audioVolumeMute,
  165: LogicalKeyboardKey.info,
  166: LogicalKeyboardKey.channelUp,
  167: LogicalKeyboardKey.channelDown,
  168: LogicalKeyboardKey.zoomIn,
  169: LogicalKeyboardKey.zoomOut,
  170: LogicalKeyboardKey.tv,
  172: LogicalKeyboardKey.guide,
  173: LogicalKeyboardKey.dvr,
  174: LogicalKeyboardKey.browserFavorites,
  175: LogicalKeyboardKey.closedCaptionToggle,
  176: LogicalKeyboardKey.settings,
  177: LogicalKeyboardKey.tvPower,
  178: LogicalKeyboardKey.tvInput,
  179: LogicalKeyboardKey.stbPower,
  180: LogicalKeyboardKey.stbInput,
  181: LogicalKeyboardKey.avrPower,
  182: LogicalKeyboardKey.avrInput,
  183: LogicalKeyboardKey.colorF0Red,
  184: LogicalKeyboardKey.colorF1Green,
  185: LogicalKeyboardKey.colorF2Yellow,
  186: LogicalKeyboardKey.colorF3Blue,
  187: LogicalKeyboardKey.appSwitch,
  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,
  204: LogicalKeyboardKey.groupNext,
  205: LogicalKeyboardKey.mannerMode,
  206: LogicalKeyboardKey.tv3DMode,
  207: LogicalKeyboardKey.launchContacts,
  208: LogicalKeyboardKey.launchCalendar,
  209: LogicalKeyboardKey.launchMusicPlayer,
  211: LogicalKeyboardKey.zenkakuHankaku,
  212: LogicalKeyboardKey.eisu,
  213: LogicalKeyboardKey.nonConvert,
  214: LogicalKeyboardKey.convert,
  215: LogicalKeyboardKey.hiraganaKatakana,
  216: LogicalKeyboardKey.intlYen,
  217: LogicalKeyboardKey.intlRo,
  218: LogicalKeyboardKey.kanjiMode,
  219: LogicalKeyboardKey.launchAssistant,
  220: LogicalKeyboardKey.brightnessDown,
  221: LogicalKeyboardKey.brightnessUp,
  222: LogicalKeyboardKey.mediaAudioTrack,
  223: LogicalKeyboardKey.sleep,
  224: LogicalKeyboardKey.wakeUp,
  225: LogicalKeyboardKey.pairing,
  226: LogicalKeyboardKey.mediaTopMenu,
  229: LogicalKeyboardKey.mediaLast,
  230: LogicalKeyboardKey.tvDataService,
  232: LogicalKeyboardKey.tvRadioService,
  233: LogicalKeyboardKey.teletext,
  234: LogicalKeyboardKey.tvNumberEntry,
  235: LogicalKeyboardKey.tvTerrestrialAnalog,
  236: LogicalKeyboardKey.tvTerrestrialDigital,
  237: LogicalKeyboardKey.tvSatellite,
  238: LogicalKeyboardKey.tvSatelliteBS,
  239: LogicalKeyboardKey.tvSatelliteCS,
  240: LogicalKeyboardKey.tvSatelliteToggle,
  241: LogicalKeyboardKey.tvNetwork,
  242: LogicalKeyboardKey.tvAntennaCable,
  243: LogicalKeyboardKey.tvInputHDMI1,
  244: LogicalKeyboardKey.tvInputHDMI2,
  245: LogicalKeyboardKey.tvInputHDMI3,
  246: LogicalKeyboardKey.tvInputHDMI4,
  247: LogicalKeyboardKey.tvInputComposite1,
  248: LogicalKeyboardKey.tvInputComposite2,
  249: LogicalKeyboardKey.tvInputComponent1,
  250: LogicalKeyboardKey.tvInputComponent2,
  251: LogicalKeyboardKey.tvInputVGA1,
  252: LogicalKeyboardKey.tvAudioDescription,
  253: LogicalKeyboardKey.tvAudioDescriptionMixUp,
  254: LogicalKeyboardKey.tvAudioDescriptionMixDown,
  255: LogicalKeyboardKey.zoomToggle,
  256: LogicalKeyboardKey.tvContentsMenu,
  258: LogicalKeyboardKey.tvTimer,
  259: LogicalKeyboardKey.help,
  260: LogicalKeyboardKey.navigatePrevious,
  261: LogicalKeyboardKey.navigateNext,
  262: LogicalKeyboardKey.navigateIn,
  263: LogicalKeyboardKey.navigateOut,
  272: LogicalKeyboardKey.mediaSkipForward,
  273: LogicalKeyboardKey.mediaSkipBackward,
  274: LogicalKeyboardKey.mediaStepForward,
  275: LogicalKeyboardKey.mediaStepBackward,
  277: LogicalKeyboardKey.cut,
  278: LogicalKeyboardKey.copy,
  279: LogicalKeyboardKey.paste,
};