kAndroidToPhysicalKey top-level constant
Maps Android-specific scan codes to the matching PhysicalKeyboardKey.
Implementation
const Map<int, PhysicalKeyboardKey> kAndroidToPhysicalKey = <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.numLock,
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.backslash,
87: PhysicalKeyboardKey.f11,
88: PhysicalKeyboardKey.f12,
89: PhysicalKeyboardKey.intlRo,
90: PhysicalKeyboardKey.lang3,
91: PhysicalKeyboardKey.lang4,
92: PhysicalKeyboardKey.convert,
94: PhysicalKeyboardKey.nonConvert,
95: PhysicalKeyboardKey.numpadComma,
96: PhysicalKeyboardKey.numpadEnter,
97: PhysicalKeyboardKey.controlRight,
98: PhysicalKeyboardKey.numpadDivide,
99: PhysicalKeyboardKey.printScreen,
100: PhysicalKeyboardKey.altRight,
102: PhysicalKeyboardKey.home,
103: PhysicalKeyboardKey.arrowUp,
104: PhysicalKeyboardKey.pageUp,
105: PhysicalKeyboardKey.arrowLeft,
106: PhysicalKeyboardKey.arrowRight,
107: PhysicalKeyboardKey.end,
108: PhysicalKeyboardKey.arrowDown,
109: PhysicalKeyboardKey.pageDown,
110: PhysicalKeyboardKey.insert,
111: PhysicalKeyboardKey.delete,
113: PhysicalKeyboardKey.audioVolumeMute,
114: PhysicalKeyboardKey.audioVolumeDown,
115: PhysicalKeyboardKey.audioVolumeUp,
116: PhysicalKeyboardKey.power,
117: PhysicalKeyboardKey.numpadEqual,
119: PhysicalKeyboardKey.pause,
121: PhysicalKeyboardKey.numpadComma,
124: PhysicalKeyboardKey.intlYen,
125: PhysicalKeyboardKey.metaLeft,
126: PhysicalKeyboardKey.metaRight,
127: PhysicalKeyboardKey.contextMenu,
128: PhysicalKeyboardKey.mediaStop,
129: PhysicalKeyboardKey.again,
130: PhysicalKeyboardKey.props,
131: PhysicalKeyboardKey.undo,
133: PhysicalKeyboardKey.copy,
134: PhysicalKeyboardKey.open,
135: PhysicalKeyboardKey.paste,
136: PhysicalKeyboardKey.find,
137: PhysicalKeyboardKey.cut,
138: PhysicalKeyboardKey.help,
139: PhysicalKeyboardKey.contextMenu,
142: PhysicalKeyboardKey.sleep,
143: PhysicalKeyboardKey.wakeUp,
152: PhysicalKeyboardKey.power,
155: PhysicalKeyboardKey.launchMail,
156: PhysicalKeyboardKey.browserFavorites,
159: PhysicalKeyboardKey.browserForward,
160: PhysicalKeyboardKey.close,
161: PhysicalKeyboardKey.eject,
162: PhysicalKeyboardKey.eject,
163: PhysicalKeyboardKey.mediaTrackNext,
164: PhysicalKeyboardKey.mediaPlayPause,
165: PhysicalKeyboardKey.mediaTrackPrevious,
166: PhysicalKeyboardKey.mediaStop,
167: PhysicalKeyboardKey.mediaRecord,
168: PhysicalKeyboardKey.mediaRewind,
174: PhysicalKeyboardKey.exit,
177: PhysicalKeyboardKey.pageUp,
178: PhysicalKeyboardKey.pageDown,
179: PhysicalKeyboardKey.numpadParenLeft,
180: PhysicalKeyboardKey.numpadParenRight,
182: PhysicalKeyboardKey.redo,
183: PhysicalKeyboardKey.f13,
184: PhysicalKeyboardKey.f14,
185: PhysicalKeyboardKey.f15,
186: PhysicalKeyboardKey.f16,
187: PhysicalKeyboardKey.f17,
188: PhysicalKeyboardKey.f18,
189: PhysicalKeyboardKey.f19,
190: PhysicalKeyboardKey.f20,
191: PhysicalKeyboardKey.f21,
192: PhysicalKeyboardKey.f22,
193: PhysicalKeyboardKey.f23,
194: PhysicalKeyboardKey.f24,
200: PhysicalKeyboardKey.mediaPlay,
201: PhysicalKeyboardKey.mediaPause,
205: PhysicalKeyboardKey.suspend,
206: PhysicalKeyboardKey.close,
207: PhysicalKeyboardKey.mediaPlay,
208: PhysicalKeyboardKey.mediaFastForward,
209: PhysicalKeyboardKey.bassBoost,
210: PhysicalKeyboardKey.print,
215: PhysicalKeyboardKey.launchMail,
217: PhysicalKeyboardKey.browserSearch,
224: PhysicalKeyboardKey.brightnessDown,
225: PhysicalKeyboardKey.brightnessUp,
256: PhysicalKeyboardKey.gameButton1,
257: PhysicalKeyboardKey.gameButton2,
258: PhysicalKeyboardKey.gameButton3,
259: PhysicalKeyboardKey.gameButton4,
260: PhysicalKeyboardKey.gameButton5,
261: PhysicalKeyboardKey.gameButton6,
262: PhysicalKeyboardKey.gameButton7,
263: PhysicalKeyboardKey.gameButton8,
264: PhysicalKeyboardKey.gameButton9,
265: PhysicalKeyboardKey.gameButton10,
266: PhysicalKeyboardKey.gameButton11,
267: PhysicalKeyboardKey.gameButton12,
268: PhysicalKeyboardKey.gameButton13,
269: PhysicalKeyboardKey.gameButton14,
270: PhysicalKeyboardKey.gameButton15,
271: PhysicalKeyboardKey.gameButton16,
288: PhysicalKeyboardKey.gameButton1,
289: PhysicalKeyboardKey.gameButton2,
290: PhysicalKeyboardKey.gameButton3,
291: PhysicalKeyboardKey.gameButton4,
292: PhysicalKeyboardKey.gameButton5,
293: PhysicalKeyboardKey.gameButton6,
294: PhysicalKeyboardKey.gameButton7,
295: PhysicalKeyboardKey.gameButton8,
296: PhysicalKeyboardKey.gameButton9,
297: PhysicalKeyboardKey.gameButton10,
298: PhysicalKeyboardKey.gameButton11,
299: PhysicalKeyboardKey.gameButton12,
300: PhysicalKeyboardKey.gameButton13,
301: PhysicalKeyboardKey.gameButton14,
302: PhysicalKeyboardKey.gameButton15,
303: PhysicalKeyboardKey.gameButton16,
304: PhysicalKeyboardKey.gameButtonA,
305: PhysicalKeyboardKey.gameButtonB,
306: PhysicalKeyboardKey.gameButtonC,
307: PhysicalKeyboardKey.gameButtonX,
308: PhysicalKeyboardKey.gameButtonY,
309: PhysicalKeyboardKey.gameButtonZ,
310: PhysicalKeyboardKey.gameButtonLeft1,
311: PhysicalKeyboardKey.gameButtonRight1,
312: PhysicalKeyboardKey.gameButtonLeft2,
313: PhysicalKeyboardKey.gameButtonRight2,
314: PhysicalKeyboardKey.gameButtonSelect,
315: PhysicalKeyboardKey.gameButtonStart,
316: PhysicalKeyboardKey.gameButtonMode,
317: PhysicalKeyboardKey.gameButtonThumbLeft,
318: PhysicalKeyboardKey.gameButtonThumbRight,
353: PhysicalKeyboardKey.select,
358: PhysicalKeyboardKey.info,
370: PhysicalKeyboardKey.closedCaptionToggle,
397: PhysicalKeyboardKey.launchCalendar,
402: PhysicalKeyboardKey.channelUp,
403: PhysicalKeyboardKey.channelDown,
405: PhysicalKeyboardKey.mediaLast,
411: PhysicalKeyboardKey.pause,
429: PhysicalKeyboardKey.launchContacts,
464: PhysicalKeyboardKey.fn,
583: PhysicalKeyboardKey.launchAssistant,
};