| // Copyright 2013 The Flutter Authors. All rights reserved. |
| // Use of this source code is governed by a BSD-style license that can be |
| // found in the LICENSE file. |
| |
| // DO NOT EDIT -- DO NOT EDIT -- DO NOT EDIT |
| // This file is generated by dev/tools/gen_keycodes/bin/gen_keycodes.dart and |
| // should not be edited directly. |
| // |
| // Edit the template dev/tools/gen_keycodes/data/web_key_map_dart.tmpl instead. |
| // See dev/tools/gen_keycodes/README.md for more information. |
| |
| part of engine; |
| |
| /// Maps Web KeyboardEvent codes to the matching LogicalKeyboardKey id. |
| const Map<String, int> kWebToLogicalKey = <String, int>{ |
| 'None': 0x0000000000, |
| 'Unidentified': 0x0000000001, |
| 'Backspace': 0x0000000008, |
| 'Tab': 0x0000000009, |
| 'Enter': 0x000000000d, |
| 'Escape': 0x000000001b, |
| 'Space': 0x0000000020, |
| 'Exclamation': 0x0000000021, |
| 'Quote': 0x0000000022, |
| 'NumberSign': 0x0000000023, |
| 'Dollar': 0x0000000024, |
| 'Ampersand': 0x0000000026, |
| 'QuoteSingle': 0x0000000027, |
| 'ParenthesisLeft': 0x0000000028, |
| 'ParenthesisRight': 0x0000000029, |
| 'Asterisk': 0x000000002a, |
| 'Add': 0x000000002b, |
| 'Comma': 0x000000002c, |
| 'Minus': 0x000000002d, |
| 'Period': 0x000000002e, |
| 'Slash': 0x000000002f, |
| 'Digit0': 0x0000000030, |
| 'Digit1': 0x0000000031, |
| 'Digit2': 0x0000000032, |
| 'Digit3': 0x0000000033, |
| 'Digit4': 0x0000000034, |
| 'Digit5': 0x0000000035, |
| 'Digit6': 0x0000000036, |
| 'Digit7': 0x0000000037, |
| 'Digit8': 0x0000000038, |
| 'Digit9': 0x0000000039, |
| 'Colon': 0x000000003a, |
| 'Semicolon': 0x000000003b, |
| 'Less': 0x000000003c, |
| 'Equal': 0x000000003d, |
| 'Greater': 0x000000003e, |
| 'Question': 0x000000003f, |
| 'At': 0x0000000040, |
| 'BracketLeft': 0x000000005b, |
| 'Backslash': 0x000000005c, |
| 'BracketRight': 0x000000005d, |
| 'Caret': 0x000000005e, |
| 'Underscore': 0x000000005f, |
| 'Backquote': 0x0000000060, |
| 'KeyA': 0x0000000061, |
| 'KeyB': 0x0000000062, |
| 'KeyC': 0x0000000063, |
| 'KeyD': 0x0000000064, |
| 'KeyE': 0x0000000065, |
| 'KeyF': 0x0000000066, |
| 'KeyG': 0x0000000067, |
| 'KeyH': 0x0000000068, |
| 'KeyI': 0x0000000069, |
| 'KeyJ': 0x000000006a, |
| 'KeyK': 0x000000006b, |
| 'KeyL': 0x000000006c, |
| 'KeyM': 0x000000006d, |
| 'KeyN': 0x000000006e, |
| 'KeyO': 0x000000006f, |
| 'KeyP': 0x0000000070, |
| 'KeyQ': 0x0000000071, |
| 'KeyR': 0x0000000072, |
| 'KeyS': 0x0000000073, |
| 'KeyT': 0x0000000074, |
| 'KeyU': 0x0000000075, |
| 'KeyV': 0x0000000076, |
| 'KeyW': 0x0000000077, |
| 'KeyX': 0x0000000078, |
| 'KeyY': 0x0000000079, |
| 'KeyZ': 0x000000007a, |
| 'BraceLeft': 0x000000007b, |
| 'Bar': 0x000000007c, |
| 'BraceRight': 0x000000007d, |
| 'Tilde': 0x000000007e, |
| 'Delete': 0x000000007f, |
| 'Accel': 0x0000000101, |
| 'AltGraph': 0x0000000103, |
| 'CapsLock': 0x0000000104, |
| 'Fn': 0x0000000106, |
| 'FnLock': 0x0000000107, |
| 'Hyper': 0x0000000108, |
| 'NumLock': 0x000000010a, |
| 'ScrollLock': 0x000000010c, |
| 'Super': 0x000000010e, |
| 'Symbol': 0x000000010f, |
| 'SymbolLock': 0x0000000110, |
| 'ShiftLevel5': 0x0000000111, |
| 'AltGraphLatch': 0x0000000112, |
| 'ArrowDown': 0x0000000301, |
| 'ArrowLeft': 0x0000000302, |
| 'ArrowRight': 0x0000000303, |
| 'ArrowUp': 0x0000000304, |
| 'End': 0x0000000305, |
| 'Home': 0x0000000306, |
| 'PageDown': 0x0000000307, |
| 'PageUp': 0x0000000308, |
| 'Clear': 0x0000000401, |
| 'Copy': 0x0000000402, |
| 'CrSel': 0x0000000403, |
| 'Cut': 0x0000000404, |
| 'EraseEof': 0x0000000405, |
| 'ExSel': 0x0000000406, |
| 'Insert': 0x0000000407, |
| 'Paste': 0x0000000408, |
| 'Redo': 0x0000000409, |
| 'Undo': 0x000000040a, |
| 'Accept': 0x0000000501, |
| 'Again': 0x0000000502, |
| 'Attn': 0x0000000503, |
| 'Cancel': 0x0000000504, |
| 'ContextMenu': 0x0000000505, |
| 'Execute': 0x0000000506, |
| 'Find': 0x0000000507, |
| 'Help': 0x0000000508, |
| 'Pause': 0x0000000509, |
| 'Play': 0x000000050a, |
| 'Props': 0x000000050b, |
| 'Select': 0x000000050c, |
| 'ZoomIn': 0x000000050d, |
| 'ZoomOut': 0x000000050e, |
| 'BrightnessDown': 0x0000000601, |
| 'BrightnessUp': 0x0000000602, |
| 'Camera': 0x0000000603, |
| 'Eject': 0x0000000604, |
| 'LogOff': 0x0000000605, |
| 'Power': 0x0000000606, |
| 'PowerOff': 0x0000000607, |
| 'PrintScreen': 0x0000000608, |
| 'Hibernate': 0x0000000609, |
| 'Standby': 0x000000060a, |
| 'WakeUp': 0x000000060b, |
| 'AllCandidates': 0x0000000701, |
| 'Alphanumeric': 0x0000000702, |
| 'CodeInput': 0x0000000703, |
| 'Compose': 0x0000000704, |
| 'Convert': 0x0000000705, |
| 'FinalMode': 0x0000000706, |
| 'GroupFirst': 0x0000000707, |
| 'GroupLast': 0x0000000708, |
| 'GroupNext': 0x0000000709, |
| 'GroupPrevious': 0x000000070a, |
| 'ModeChange': 0x000000070b, |
| 'NextCandidate': 0x000000070c, |
| 'NonConvert': 0x000000070d, |
| 'PreviousCandidate': 0x000000070e, |
| 'Process': 0x000000070f, |
| 'SingleCandidate': 0x0000000710, |
| 'HangulMode': 0x0000000711, |
| 'HanjaMode': 0x0000000712, |
| 'JunjaMode': 0x0000000713, |
| 'Eisu': 0x0000000714, |
| 'Hankaku': 0x0000000715, |
| 'Hiragana': 0x0000000716, |
| 'HiraganaKatakana': 0x0000000717, |
| 'KanaMode': 0x0000000718, |
| 'KanjiMode': 0x0000000719, |
| 'Katakana': 0x000000071a, |
| 'Romaji': 0x000000071b, |
| 'Zenkaku': 0x000000071c, |
| 'ZenkakuHankaku': 0x000000071d, |
| 'F1': 0x0000000801, |
| 'F2': 0x0000000802, |
| 'F3': 0x0000000803, |
| 'F4': 0x0000000804, |
| 'F5': 0x0000000805, |
| 'F6': 0x0000000806, |
| 'F7': 0x0000000807, |
| 'F8': 0x0000000808, |
| 'F9': 0x0000000809, |
| 'F10': 0x000000080a, |
| 'F11': 0x000000080b, |
| 'F12': 0x000000080c, |
| 'F13': 0x000000080d, |
| 'F14': 0x000000080e, |
| 'F15': 0x000000080f, |
| 'F16': 0x0000000810, |
| 'F17': 0x0000000811, |
| 'F18': 0x0000000812, |
| 'F19': 0x0000000813, |
| 'F20': 0x0000000814, |
| 'F21': 0x0000000815, |
| 'F22': 0x0000000816, |
| 'F23': 0x0000000817, |
| 'F24': 0x0000000818, |
| 'Soft1': 0x0000000901, |
| 'Soft2': 0x0000000902, |
| 'Soft3': 0x0000000903, |
| 'Soft4': 0x0000000904, |
| 'Soft5': 0x0000000905, |
| 'Soft6': 0x0000000906, |
| 'Soft7': 0x0000000907, |
| 'Soft8': 0x0000000908, |
| 'Close': 0x0000000a01, |
| 'MailForward': 0x0000000a02, |
| 'MailReply': 0x0000000a03, |
| 'MailSend': 0x0000000a04, |
| 'MediaPlayPause': 0x0000000a05, |
| 'MediaStop': 0x0000000a07, |
| 'MediaTrackNext': 0x0000000a08, |
| 'MediaTrackPrevious': 0x0000000a09, |
| 'New': 0x0000000a0a, |
| 'Open': 0x0000000a0b, |
| 'Print': 0x0000000a0c, |
| 'Save': 0x0000000a0d, |
| 'SpellCheck': 0x0000000a0e, |
| 'AudioVolumeDown': 0x0000000a0f, |
| 'AudioVolumeUp': 0x0000000a10, |
| 'AudioVolumeMute': 0x0000000a11, |
| 'LaunchApplication2': 0x0000000b01, |
| 'LaunchCalendar': 0x0000000b02, |
| 'LaunchMail': 0x0000000b03, |
| 'LaunchMediaPlayer': 0x0000000b04, |
| 'LaunchMusicPlayer': 0x0000000b05, |
| 'LaunchApplication1': 0x0000000b06, |
| 'LaunchScreenSaver': 0x0000000b07, |
| 'LaunchSpreadsheet': 0x0000000b08, |
| 'LaunchWebBrowser': 0x0000000b09, |
| 'LaunchWebCam': 0x0000000b0a, |
| 'LaunchWordProcessor': 0x0000000b0b, |
| 'LaunchContacts': 0x0000000b0c, |
| 'LaunchPhone': 0x0000000b0d, |
| 'LaunchAssistant': 0x0000000b0e, |
| 'LaunchControlPanel': 0x0000000b0f, |
| 'BrowserBack': 0x0000000c01, |
| 'BrowserFavorites': 0x0000000c02, |
| 'BrowserForward': 0x0000000c03, |
| 'BrowserHome': 0x0000000c04, |
| 'BrowserRefresh': 0x0000000c05, |
| 'BrowserSearch': 0x0000000c06, |
| 'BrowserStop': 0x0000000c07, |
| 'AudioBalanceLeft': 0x0000000d01, |
| 'AudioBalanceRight': 0x0000000d02, |
| 'AudioBassBoostDown': 0x0000000d03, |
| 'AudioBassBoostUp': 0x0000000d04, |
| 'AudioFaderFront': 0x0000000d05, |
| 'AudioFaderRear': 0x0000000d06, |
| 'AudioSurroundModeNext': 0x0000000d07, |
| 'AVRInput': 0x0000000d08, |
| 'AVRPower': 0x0000000d09, |
| 'ChannelDown': 0x0000000d0a, |
| 'ChannelUp': 0x0000000d0b, |
| 'ColorF0Red': 0x0000000d0c, |
| 'ColorF1Green': 0x0000000d0d, |
| 'ColorF2Yellow': 0x0000000d0e, |
| 'ColorF3Blue': 0x0000000d0f, |
| 'ColorF4Grey': 0x0000000d10, |
| 'ColorF5Brown': 0x0000000d11, |
| 'ClosedCaptionToggle': 0x0000000d12, |
| 'Dimmer': 0x0000000d13, |
| 'DisplaySwap': 0x0000000d14, |
| 'Exit': 0x0000000d15, |
| 'FavoriteClear0': 0x0000000d16, |
| 'FavoriteClear1': 0x0000000d17, |
| 'FavoriteClear2': 0x0000000d18, |
| 'FavoriteClear3': 0x0000000d19, |
| 'FavoriteRecall0': 0x0000000d1a, |
| 'FavoriteRecall1': 0x0000000d1b, |
| 'FavoriteRecall2': 0x0000000d1c, |
| 'FavoriteRecall3': 0x0000000d1d, |
| 'FavoriteStore0': 0x0000000d1e, |
| 'FavoriteStore1': 0x0000000d1f, |
| 'FavoriteStore2': 0x0000000d20, |
| 'FavoriteStore3': 0x0000000d21, |
| 'Guide': 0x0000000d22, |
| 'GuideNextDay': 0x0000000d23, |
| 'GuidePreviousDay': 0x0000000d24, |
| 'Info': 0x0000000d25, |
| 'InstantReplay': 0x0000000d26, |
| 'Link': 0x0000000d27, |
| 'ListProgram': 0x0000000d28, |
| 'LiveContent': 0x0000000d29, |
| 'Lock': 0x0000000d2a, |
| 'MediaApps': 0x0000000d2b, |
| 'MediaFastForward': 0x0000000d2c, |
| 'MediaLast': 0x0000000d2d, |
| 'MediaPause': 0x0000000d2e, |
| 'MediaPlay': 0x0000000d2f, |
| 'MediaRecord': 0x0000000d30, |
| 'MediaRewind': 0x0000000d31, |
| 'MediaSkip': 0x0000000d32, |
| 'NextFavoriteChannel': 0x0000000d33, |
| 'NextUserProfile': 0x0000000d34, |
| 'OnDemand': 0x0000000d35, |
| 'PinPDown': 0x0000000d36, |
| 'PinPMove': 0x0000000d37, |
| 'PinPToggle': 0x0000000d38, |
| 'PinPUp': 0x0000000d39, |
| 'PlaySpeedDown': 0x0000000d3a, |
| 'PlaySpeedReset': 0x0000000d3b, |
| 'PlaySpeedUp': 0x0000000d3c, |
| 'RandomToggle': 0x0000000d3d, |
| 'RcLowBattery': 0x0000000d3e, |
| 'RecordSpeedNext': 0x0000000d3f, |
| 'RfBypass': 0x0000000d40, |
| 'ScanChannelsToggle': 0x0000000d41, |
| 'ScreenModeNext': 0x0000000d42, |
| 'Settings': 0x0000000d43, |
| 'SplitScreenToggle': 0x0000000d44, |
| 'STBInput': 0x0000000d45, |
| 'STBPower': 0x0000000d46, |
| 'Subtitle': 0x0000000d47, |
| 'Teletext': 0x0000000d48, |
| 'TV': 0x0000000d49, |
| 'TVInput': 0x0000000d4a, |
| 'TVPower': 0x0000000d4b, |
| 'VideoModeNext': 0x0000000d4c, |
| 'Wink': 0x0000000d4d, |
| 'ZoomToggle': 0x0000000d4e, |
| 'DVR': 0x0000000d4f, |
| 'MediaAudioTrack': 0x0000000d50, |
| 'MediaSkipBackward': 0x0000000d51, |
| 'MediaSkipForward': 0x0000000d52, |
| 'MediaStepBackward': 0x0000000d53, |
| 'MediaStepForward': 0x0000000d54, |
| 'MediaTopMenu': 0x0000000d55, |
| 'NavigateIn': 0x0000000d56, |
| 'NavigateNext': 0x0000000d57, |
| 'NavigateOut': 0x0000000d58, |
| 'NavigatePrevious': 0x0000000d59, |
| 'Pairing': 0x0000000d5a, |
| 'MediaClose': 0x0000000d5b, |
| 'AudioBassBoostToggle': 0x0000000e02, |
| 'AudioTrebleDown': 0x0000000e04, |
| 'AudioTrebleUp': 0x0000000e05, |
| 'MicrophoneToggle': 0x0000000e06, |
| 'MicrophoneVolumeDown': 0x0000000e07, |
| 'MicrophoneVolumeUp': 0x0000000e08, |
| 'MicrophoneVolumeMute': 0x0000000e09, |
| 'SpeechCorrectionList': 0x0000000f01, |
| 'SpeechInputToggle': 0x0000000f02, |
| 'AppSwitch': 0x0000001001, |
| 'Call': 0x0000001002, |
| 'CameraFocus': 0x0000001003, |
| 'EndCall': 0x0000001004, |
| 'GoBack': 0x0000001005, |
| 'GoHome': 0x0000001006, |
| 'HeadsetHook': 0x0000001007, |
| 'LastNumberRedial': 0x0000001008, |
| 'Notification': 0x0000001009, |
| 'MannerMode': 0x000000100a, |
| 'VoiceDial': 0x000000100b, |
| 'TV3DMode': 0x0000001101, |
| 'TVAntennaCable': 0x0000001102, |
| 'TVAudioDescription': 0x0000001103, |
| 'TVAudioDescriptionMixDown': 0x0000001104, |
| 'TVAudioDescriptionMixUp': 0x0000001105, |
| 'TVContentsMenu': 0x0000001106, |
| 'TVDataService': 0x0000001107, |
| 'TVInputComponent1': 0x0000001108, |
| 'TVInputComponent2': 0x0000001109, |
| 'TVInputComposite1': 0x000000110a, |
| 'TVInputComposite2': 0x000000110b, |
| 'TVInputHDMI1': 0x000000110c, |
| 'TVInputHDMI2': 0x000000110d, |
| 'TVInputHDMI3': 0x000000110e, |
| 'TVInputHDMI4': 0x000000110f, |
| 'TVInputVGA1': 0x0000001110, |
| 'TVMediaContext': 0x0000001111, |
| 'TVNetwork': 0x0000001112, |
| 'TVNumberEntry': 0x0000001113, |
| 'TVRadioService': 0x0000001114, |
| 'TVSatellite': 0x0000001115, |
| 'TVSatelliteBS': 0x0000001116, |
| 'TVSatelliteCS': 0x0000001117, |
| 'TVSatelliteToggle': 0x0000001118, |
| 'TVTerrestrialAnalog': 0x0000001119, |
| 'TVTerrestrialDigital': 0x000000111a, |
| 'TVTimer': 0x000000111b, |
| 'Key11': 0x0000001201, |
| 'Key12': 0x0000001202, |
| 'GameButton1': 0x000005ff01, |
| 'GameButton2': 0x000005ff02, |
| 'GameButton3': 0x000005ff03, |
| 'GameButton4': 0x000005ff04, |
| 'GameButton5': 0x000005ff05, |
| 'GameButton6': 0x000005ff06, |
| 'GameButton7': 0x000005ff07, |
| 'GameButton8': 0x000005ff08, |
| 'GameButton9': 0x000005ff09, |
| 'GameButton10': 0x000005ff0a, |
| 'GameButton11': 0x000005ff0b, |
| 'GameButton12': 0x000005ff0c, |
| 'GameButton13': 0x000005ff0d, |
| 'GameButton14': 0x000005ff0e, |
| 'GameButton15': 0x000005ff0f, |
| 'GameButton16': 0x000005ff10, |
| 'GameButtonA': 0x000005ff11, |
| 'GameButtonB': 0x000005ff12, |
| 'GameButtonC': 0x000005ff13, |
| 'GameButtonLeft1': 0x000005ff14, |
| 'GameButtonLeft2': 0x000005ff15, |
| 'GameButtonMode': 0x000005ff16, |
| 'GameButtonRight1': 0x000005ff17, |
| 'GameButtonRight2': 0x000005ff18, |
| 'GameButtonSelect': 0x000005ff19, |
| 'GameButtonStart': 0x000005ff1a, |
| 'GameButtonThumbLeft': 0x000005ff1b, |
| 'GameButtonThumbRight': 0x000005ff1c, |
| 'GameButtonX': 0x000005ff1d, |
| 'GameButtonY': 0x000005ff1e, |
| 'GameButtonZ': 0x000005ff1f, |
| 'Suspend': 0x0100000014, |
| 'Resume': 0x0100000015, |
| 'Sleep': 0x0100010082, |
| 'IntlBackslash': 0x0100070064, |
| 'IntlRo': 0x0100070087, |
| 'IntlYen': 0x0100070089, |
| 'Lang1': 0x0100070090, |
| 'Lang2': 0x0100070091, |
| 'Lang3': 0x0100070092, |
| 'Lang4': 0x0100070093, |
| 'Lang5': 0x0100070094, |
| 'Abort': 0x010007009b, |
| }; |
| |
| /// Maps Web KeyboardEvent codes to the matching PhysicalKeyboardKey USB HID code. |
| const Map<String, int> kWebToPhysicalKey = <String, int>{ |
| 'None': 0x00000000, |
| 'Hyper': 0x00000010, |
| 'Super': 0x00000011, |
| 'FnLock': 0x00000013, |
| 'Suspend': 0x00000014, |
| 'Resume': 0x00000015, |
| 'Turbo': 0x00000016, |
| 'PrivacyScreenToggle': 0x00000017, |
| 'Sleep': 0x00010082, |
| 'WakeUp': 0x00010083, |
| 'DisplayToggleIntExt': 0x000100b5, |
| 'KeyA': 0x00070004, |
| 'KeyB': 0x00070005, |
| 'KeyC': 0x00070006, |
| 'KeyD': 0x00070007, |
| 'KeyE': 0x00070008, |
| 'KeyF': 0x00070009, |
| 'KeyG': 0x0007000a, |
| 'KeyH': 0x0007000b, |
| 'KeyI': 0x0007000c, |
| 'KeyJ': 0x0007000d, |
| 'KeyK': 0x0007000e, |
| 'KeyL': 0x0007000f, |
| 'KeyM': 0x00070010, |
| 'KeyN': 0x00070011, |
| 'KeyO': 0x00070012, |
| 'KeyP': 0x00070013, |
| 'KeyQ': 0x00070014, |
| 'KeyR': 0x00070015, |
| 'KeyS': 0x00070016, |
| 'KeyT': 0x00070017, |
| 'KeyU': 0x00070018, |
| 'KeyV': 0x00070019, |
| 'KeyW': 0x0007001a, |
| 'KeyX': 0x0007001b, |
| 'KeyY': 0x0007001c, |
| 'KeyZ': 0x0007001d, |
| 'Digit1': 0x0007001e, |
| 'Digit2': 0x0007001f, |
| 'Digit3': 0x00070020, |
| 'Digit4': 0x00070021, |
| 'Digit5': 0x00070022, |
| 'Digit6': 0x00070023, |
| 'Digit7': 0x00070024, |
| 'Digit8': 0x00070025, |
| 'Digit9': 0x00070026, |
| 'Digit0': 0x00070027, |
| 'Enter': 0x00070028, |
| 'Escape': 0x00070029, |
| 'Backspace': 0x0007002a, |
| 'Tab': 0x0007002b, |
| 'Space': 0x0007002c, |
| 'Minus': 0x0007002d, |
| 'Equal': 0x0007002e, |
| 'BracketLeft': 0x0007002f, |
| 'BracketRight': 0x00070030, |
| 'Backslash': 0x00070031, |
| 'Semicolon': 0x00070033, |
| 'Quote': 0x00070034, |
| 'Backquote': 0x00070035, |
| 'Comma': 0x00070036, |
| 'Period': 0x00070037, |
| 'Slash': 0x00070038, |
| 'CapsLock': 0x00070039, |
| 'F1': 0x0007003a, |
| 'F2': 0x0007003b, |
| 'F3': 0x0007003c, |
| 'F4': 0x0007003d, |
| 'F5': 0x0007003e, |
| 'F6': 0x0007003f, |
| 'F7': 0x00070040, |
| 'F8': 0x00070041, |
| 'F9': 0x00070042, |
| 'F10': 0x00070043, |
| 'F11': 0x00070044, |
| 'F12': 0x00070045, |
| 'PrintScreen': 0x00070046, |
| 'ScrollLock': 0x00070047, |
| 'Pause': 0x00070048, |
| 'Insert': 0x00070049, |
| 'Home': 0x0007004a, |
| 'PageUp': 0x0007004b, |
| 'Delete': 0x0007004c, |
| 'End': 0x0007004d, |
| 'PageDown': 0x0007004e, |
| 'ArrowRight': 0x0007004f, |
| 'ArrowLeft': 0x00070050, |
| 'ArrowDown': 0x00070051, |
| 'ArrowUp': 0x00070052, |
| 'NumLock': 0x00070053, |
| 'NumpadDivide': 0x00070054, |
| 'NumpadMultiply': 0x00070055, |
| 'NumpadSubtract': 0x00070056, |
| 'NumpadAdd': 0x00070057, |
| 'NumpadEnter': 0x00070058, |
| 'Numpad1': 0x00070059, |
| 'Numpad2': 0x0007005a, |
| 'Numpad3': 0x0007005b, |
| 'Numpad4': 0x0007005c, |
| 'Numpad5': 0x0007005d, |
| 'Numpad6': 0x0007005e, |
| 'Numpad7': 0x0007005f, |
| 'Numpad8': 0x00070060, |
| 'Numpad9': 0x00070061, |
| 'Numpad0': 0x00070062, |
| 'NumpadDecimal': 0x00070063, |
| 'IntlBackslash': 0x00070064, |
| 'ContextMenu': 0x00070065, |
| 'Power': 0x00070066, |
| 'NumpadEqual': 0x00070067, |
| 'F13': 0x00070068, |
| 'F14': 0x00070069, |
| 'F15': 0x0007006a, |
| 'F16': 0x0007006b, |
| 'F17': 0x0007006c, |
| 'F18': 0x0007006d, |
| 'F19': 0x0007006e, |
| 'F20': 0x0007006f, |
| 'F21': 0x00070070, |
| 'F22': 0x00070071, |
| 'F23': 0x00070072, |
| 'F24': 0x00070073, |
| 'Open': 0x00070074, |
| 'Help': 0x00070075, |
| 'Select': 0x00070077, |
| 'Again': 0x00070079, |
| 'Undo': 0x0007007a, |
| 'Cut': 0x0007007b, |
| 'Copy': 0x0007007c, |
| 'Paste': 0x0007007d, |
| 'Find': 0x0007007e, |
| 'AudioVolumeMute': 0x0007007f, |
| 'AudioVolumeUp': 0x00070080, |
| 'AudioVolumeDown': 0x00070081, |
| 'NumpadComma': 0x00070085, |
| 'IntlRo': 0x00070087, |
| 'KanaMode': 0x00070088, |
| 'IntlYen': 0x00070089, |
| 'Convert': 0x0007008a, |
| 'NonConvert': 0x0007008b, |
| 'Lang1': 0x00070090, |
| 'Lang2': 0x00070091, |
| 'Lang3': 0x00070092, |
| 'Lang4': 0x00070093, |
| 'Lang5': 0x00070094, |
| 'Abort': 0x0007009b, |
| 'Props': 0x000700a3, |
| 'NumpadParenLeft': 0x000700b6, |
| 'NumpadParenRight': 0x000700b7, |
| 'NumpadBackspace': 0x000700bb, |
| 'NumpadMemoryStore': 0x000700d0, |
| 'NumpadMemoryRecall': 0x000700d1, |
| 'NumpadMemoryClear': 0x000700d2, |
| 'NumpadMemoryAdd': 0x000700d3, |
| 'NumpadMemorySubtract': 0x000700d4, |
| 'NumpadClear': 0x000700d8, |
| 'NumpadClearEntry': 0x000700d9, |
| 'ControlLeft': 0x000700e0, |
| 'ShiftLeft': 0x000700e1, |
| 'AltLeft': 0x000700e2, |
| 'MetaLeft': 0x000700e3, |
| 'ControlRight': 0x000700e4, |
| 'ShiftRight': 0x000700e5, |
| 'AltRight': 0x000700e6, |
| 'MetaRight': 0x000700e7, |
| 'BrightnessUp': 0x000c006f, |
| 'BrightnessDown': 0x000c0070, |
| 'MediaPlay': 0x000c00b0, |
| 'MediaPause': 0x000c00b1, |
| 'MediaRecord': 0x000c00b2, |
| 'MediaFastForward': 0x000c00b3, |
| 'MediaRewind': 0x000c00b4, |
| 'MediaTrackNext': 0x000c00b5, |
| 'MediaTrackPrevious': 0x000c00b6, |
| 'MediaStop': 0x000c00b7, |
| 'Eject': 0x000c00b8, |
| 'MediaPlayPause': 0x000c00cd, |
| 'MediaSelect': 0x000c0183, |
| 'LaunchMail': 0x000c018a, |
| 'LaunchApp2': 0x000c0192, |
| 'LaunchApp1': 0x000c0194, |
| 'LaunchControlPanel': 0x000c019f, |
| 'SelectTask': 0x000c01a2, |
| 'LaunchScreenSaver': 0x000c01b1, |
| 'LaunchAssistant': 0x000c01cb, |
| 'BrowserSearch': 0x000c0221, |
| 'BrowserHome': 0x000c0223, |
| 'BrowserBack': 0x000c0224, |
| 'BrowserForward': 0x000c0225, |
| 'BrowserStop': 0x000c0226, |
| 'BrowserRefresh': 0x000c0227, |
| 'BrowserFavorites': 0x000c022a, |
| 'ZoomToggle': 0x000c0232, |
| 'MailReply': 0x000c0289, |
| 'MailForward': 0x000c028b, |
| 'MailSend': 0x000c028c, |
| 'KeyboardLayoutSelect': 0x000c029d, |
| 'ShowAllWindows': 0x000c029f, |
| 'GameButton1': 0x0005ff01, |
| 'GameButton2': 0x0005ff02, |
| 'GameButton3': 0x0005ff03, |
| 'GameButton4': 0x0005ff04, |
| 'GameButton5': 0x0005ff05, |
| 'GameButton6': 0x0005ff06, |
| 'GameButton7': 0x0005ff07, |
| 'GameButton8': 0x0005ff08, |
| 'GameButton9': 0x0005ff09, |
| 'GameButton10': 0x0005ff0a, |
| 'GameButton11': 0x0005ff0b, |
| 'GameButton12': 0x0005ff0c, |
| 'GameButton13': 0x0005ff0d, |
| 'GameButton14': 0x0005ff0e, |
| 'GameButton15': 0x0005ff0f, |
| 'GameButton16': 0x0005ff10, |
| 'GameButtonA': 0x0005ff11, |
| 'GameButtonB': 0x0005ff12, |
| 'GameButtonC': 0x0005ff13, |
| 'GameButtonLeft1': 0x0005ff14, |
| 'GameButtonLeft2': 0x0005ff15, |
| 'GameButtonMode': 0x0005ff16, |
| 'GameButtonRight1': 0x0005ff17, |
| 'GameButtonRight2': 0x0005ff18, |
| 'GameButtonSelect': 0x0005ff19, |
| 'GameButtonStart': 0x0005ff1a, |
| 'GameButtonThumbLeft': 0x0005ff1b, |
| 'GameButtonThumbRight': 0x0005ff1c, |
| 'GameButtonX': 0x0005ff1d, |
| 'GameButtonY': 0x0005ff1e, |
| 'GameButtonZ': 0x0005ff1f, |
| 'Fn': 0x00000012, |
| }; |
| |
| /// Maps Web KeyboardEvent keys to Flutter logical IDs that depend on locations. |
| /// |
| /// `KeyboardEvent.location` is defined as: |
| /// |
| /// * 0: Standard |
| /// * 1: Left |
| /// * 2: Right |
| /// * 3: Numpad |
| const Map<String, List<int?>> kWebLogicalLocationMap = <String, List<int?>>{ |
| '0': <int?>[0x0000000030, null, null, 0x0200000030], |
| '1': <int?>[0x0000000031, null, null, 0x0200000031], |
| '2': <int?>[0x0000000032, null, null, 0x0200000032], |
| '3': <int?>[0x0000000033, null, null, 0x0200000033], |
| '4': <int?>[0x0000000034, null, null, 0x0200000034], |
| '5': <int?>[0x0000000035, null, null, 0x0200000035], |
| '6': <int?>[0x0000000036, null, null, 0x0200000036], |
| '7': <int?>[0x0000000037, null, null, 0x0200000037], |
| '8': <int?>[0x0000000038, null, null, 0x0200000038], |
| '9': <int?>[0x0000000039, null, null, 0x0200000039], |
| '.': <int?>[0x000000002e, null, null, 0x020000002e], |
| 'Insert': <int?>[0x0000000407, null, null, 0x0200000030], |
| 'End': <int?>[0x0000000305, null, null, 0x0200000031], |
| 'ArrowDown': <int?>[0x0000000301, null, null, 0x0200000032], |
| 'PageDown': <int?>[0x0000000307, null, null, 0x0200000033], |
| 'ArrowLeft': <int?>[0x0000000302, null, null, 0x0200000034], |
| 'Clear': <int?>[0x0000000401, null, null, 0x0200000035], |
| 'ArrowRight': <int?>[0x0000000303, null, null, 0x0200000036], |
| 'Home': <int?>[0x0000000306, null, null, 0x0200000037], |
| 'ArrowUp': <int?>[0x0000000304, null, null, 0x0200000038], |
| 'PageUp': <int?>[0x0000000308, null, null, 0x0200000039], |
| 'Delete': <int?>[0x000000007f, null, null, 0x020000002e], |
| '/': <int?>[0x000000002f, null, null, 0x020000002f], |
| '*': <int?>[0x000000002a, null, null, 0x020000002a], |
| '-': <int?>[0x000000002d, null, null, 0x020000002d], |
| '+': <int?>[0x000000002b, null, null, 0x020000002b], |
| 'Enter': <int?>[0x000000000d, null, null, 0x020000000d], |
| 'Shift': <int?>[null, 0x030000010d, 0x040000010d, null], |
| 'Control': <int?>[null, 0x0300000105, 0x0400000105, null], |
| 'Alt': <int?>[null, 0x0300000102, 0x0400000102, null], |
| 'Meta': <int?>[null, 0x0300000109, 0x0400000109, null], |
| }; |