kWebToPhysicalKey top-level constant
Maps Web KeyboardEvent codes to the matching PhysicalKeyboardKey
.
Implementation
const Map<String, PhysicalKeyboardKey> kWebToPhysicalKey = <String, PhysicalKeyboardKey>{
'Abort': PhysicalKeyboardKey.abort,
'Again': PhysicalKeyboardKey.again,
'AltLeft': PhysicalKeyboardKey.altLeft,
'AltRight': PhysicalKeyboardKey.altRight,
'ArrowDown': PhysicalKeyboardKey.arrowDown,
'ArrowLeft': PhysicalKeyboardKey.arrowLeft,
'ArrowRight': PhysicalKeyboardKey.arrowRight,
'ArrowUp': PhysicalKeyboardKey.arrowUp,
'AudioVolumeDown': PhysicalKeyboardKey.audioVolumeDown,
'AudioVolumeMute': PhysicalKeyboardKey.audioVolumeMute,
'AudioVolumeUp': PhysicalKeyboardKey.audioVolumeUp,
'Backquote': PhysicalKeyboardKey.backquote,
'Backslash': PhysicalKeyboardKey.backslash,
'Backspace': PhysicalKeyboardKey.backspace,
'BracketLeft': PhysicalKeyboardKey.bracketLeft,
'BracketRight': PhysicalKeyboardKey.bracketRight,
'BrightnessDown': PhysicalKeyboardKey.brightnessDown,
'BrightnessUp': PhysicalKeyboardKey.brightnessUp,
'BrowserBack': PhysicalKeyboardKey.browserBack,
'BrowserFavorites': PhysicalKeyboardKey.browserFavorites,
'BrowserForward': PhysicalKeyboardKey.browserForward,
'BrowserHome': PhysicalKeyboardKey.browserHome,
'BrowserRefresh': PhysicalKeyboardKey.browserRefresh,
'BrowserSearch': PhysicalKeyboardKey.browserSearch,
'BrowserStop': PhysicalKeyboardKey.browserStop,
'CapsLock': PhysicalKeyboardKey.capsLock,
'Comma': PhysicalKeyboardKey.comma,
'ContextMenu': PhysicalKeyboardKey.contextMenu,
'ControlLeft': PhysicalKeyboardKey.controlLeft,
'ControlRight': PhysicalKeyboardKey.controlRight,
'Convert': PhysicalKeyboardKey.convert,
'Copy': PhysicalKeyboardKey.copy,
'Cut': PhysicalKeyboardKey.cut,
'Delete': PhysicalKeyboardKey.delete,
'Digit0': PhysicalKeyboardKey.digit0,
'Digit1': PhysicalKeyboardKey.digit1,
'Digit2': PhysicalKeyboardKey.digit2,
'Digit3': PhysicalKeyboardKey.digit3,
'Digit4': PhysicalKeyboardKey.digit4,
'Digit5': PhysicalKeyboardKey.digit5,
'Digit6': PhysicalKeyboardKey.digit6,
'Digit7': PhysicalKeyboardKey.digit7,
'Digit8': PhysicalKeyboardKey.digit8,
'Digit9': PhysicalKeyboardKey.digit9,
'DisplayToggleIntExt': PhysicalKeyboardKey.displayToggleIntExt,
'Eject': PhysicalKeyboardKey.eject,
'End': PhysicalKeyboardKey.end,
'Enter': PhysicalKeyboardKey.enter,
'Equal': PhysicalKeyboardKey.equal,
'Escape': PhysicalKeyboardKey.escape,
'Esc': PhysicalKeyboardKey.escape,
'F1': PhysicalKeyboardKey.f1,
'F10': PhysicalKeyboardKey.f10,
'F11': PhysicalKeyboardKey.f11,
'F12': PhysicalKeyboardKey.f12,
'F13': PhysicalKeyboardKey.f13,
'F14': PhysicalKeyboardKey.f14,
'F15': PhysicalKeyboardKey.f15,
'F16': PhysicalKeyboardKey.f16,
'F17': PhysicalKeyboardKey.f17,
'F18': PhysicalKeyboardKey.f18,
'F19': PhysicalKeyboardKey.f19,
'F2': PhysicalKeyboardKey.f2,
'F20': PhysicalKeyboardKey.f20,
'F21': PhysicalKeyboardKey.f21,
'F22': PhysicalKeyboardKey.f22,
'F23': PhysicalKeyboardKey.f23,
'F24': PhysicalKeyboardKey.f24,
'F3': PhysicalKeyboardKey.f3,
'F4': PhysicalKeyboardKey.f4,
'F5': PhysicalKeyboardKey.f5,
'F6': PhysicalKeyboardKey.f6,
'F7': PhysicalKeyboardKey.f7,
'F8': PhysicalKeyboardKey.f8,
'F9': PhysicalKeyboardKey.f9,
'Find': PhysicalKeyboardKey.find,
'Fn': PhysicalKeyboardKey.fn,
'FnLock': PhysicalKeyboardKey.fnLock,
'GameButton1': PhysicalKeyboardKey.gameButton1,
'GameButton10': PhysicalKeyboardKey.gameButton10,
'GameButton11': PhysicalKeyboardKey.gameButton11,
'GameButton12': PhysicalKeyboardKey.gameButton12,
'GameButton13': PhysicalKeyboardKey.gameButton13,
'GameButton14': PhysicalKeyboardKey.gameButton14,
'GameButton15': PhysicalKeyboardKey.gameButton15,
'GameButton16': PhysicalKeyboardKey.gameButton16,
'GameButton2': PhysicalKeyboardKey.gameButton2,
'GameButton3': PhysicalKeyboardKey.gameButton3,
'GameButton4': PhysicalKeyboardKey.gameButton4,
'GameButton5': PhysicalKeyboardKey.gameButton5,
'GameButton6': PhysicalKeyboardKey.gameButton6,
'GameButton7': PhysicalKeyboardKey.gameButton7,
'GameButton8': PhysicalKeyboardKey.gameButton8,
'GameButton9': PhysicalKeyboardKey.gameButton9,
'GameButtonA': PhysicalKeyboardKey.gameButtonA,
'GameButtonB': PhysicalKeyboardKey.gameButtonB,
'GameButtonC': PhysicalKeyboardKey.gameButtonC,
'GameButtonLeft1': PhysicalKeyboardKey.gameButtonLeft1,
'GameButtonLeft2': PhysicalKeyboardKey.gameButtonLeft2,
'GameButtonMode': PhysicalKeyboardKey.gameButtonMode,
'GameButtonRight1': PhysicalKeyboardKey.gameButtonRight1,
'GameButtonRight2': PhysicalKeyboardKey.gameButtonRight2,
'GameButtonSelect': PhysicalKeyboardKey.gameButtonSelect,
'GameButtonStart': PhysicalKeyboardKey.gameButtonStart,
'GameButtonThumbLeft': PhysicalKeyboardKey.gameButtonThumbLeft,
'GameButtonThumbRight': PhysicalKeyboardKey.gameButtonThumbRight,
'GameButtonX': PhysicalKeyboardKey.gameButtonX,
'GameButtonY': PhysicalKeyboardKey.gameButtonY,
'GameButtonZ': PhysicalKeyboardKey.gameButtonZ,
'Help': PhysicalKeyboardKey.help,
'Home': PhysicalKeyboardKey.home,
'Hyper': PhysicalKeyboardKey.hyper,
'Insert': PhysicalKeyboardKey.insert,
'IntlBackslash': PhysicalKeyboardKey.intlBackslash,
'IntlRo': PhysicalKeyboardKey.intlRo,
'IntlYen': PhysicalKeyboardKey.intlYen,
'KanaMode': PhysicalKeyboardKey.kanaMode,
'KeyA': PhysicalKeyboardKey.keyA,
'KeyB': PhysicalKeyboardKey.keyB,
'KeyC': PhysicalKeyboardKey.keyC,
'KeyD': PhysicalKeyboardKey.keyD,
'KeyE': PhysicalKeyboardKey.keyE,
'KeyF': PhysicalKeyboardKey.keyF,
'KeyG': PhysicalKeyboardKey.keyG,
'KeyH': PhysicalKeyboardKey.keyH,
'KeyI': PhysicalKeyboardKey.keyI,
'KeyJ': PhysicalKeyboardKey.keyJ,
'KeyK': PhysicalKeyboardKey.keyK,
'KeyL': PhysicalKeyboardKey.keyL,
'KeyM': PhysicalKeyboardKey.keyM,
'KeyN': PhysicalKeyboardKey.keyN,
'KeyO': PhysicalKeyboardKey.keyO,
'KeyP': PhysicalKeyboardKey.keyP,
'KeyQ': PhysicalKeyboardKey.keyQ,
'KeyR': PhysicalKeyboardKey.keyR,
'KeyS': PhysicalKeyboardKey.keyS,
'KeyT': PhysicalKeyboardKey.keyT,
'KeyU': PhysicalKeyboardKey.keyU,
'KeyV': PhysicalKeyboardKey.keyV,
'KeyW': PhysicalKeyboardKey.keyW,
'KeyX': PhysicalKeyboardKey.keyX,
'KeyY': PhysicalKeyboardKey.keyY,
'KeyZ': PhysicalKeyboardKey.keyZ,
'KeyboardLayoutSelect': PhysicalKeyboardKey.keyboardLayoutSelect,
'Lang1': PhysicalKeyboardKey.lang1,
'Lang2': PhysicalKeyboardKey.lang2,
'Lang3': PhysicalKeyboardKey.lang3,
'Lang4': PhysicalKeyboardKey.lang4,
'Lang5': PhysicalKeyboardKey.lang5,
'LaunchApp1': PhysicalKeyboardKey.launchApp1,
'LaunchApp2': PhysicalKeyboardKey.launchApp2,
'LaunchAssistant': PhysicalKeyboardKey.launchAssistant,
'LaunchControlPanel': PhysicalKeyboardKey.launchControlPanel,
'LaunchMail': PhysicalKeyboardKey.launchMail,
'LaunchScreenSaver': PhysicalKeyboardKey.launchScreenSaver,
'MailForward': PhysicalKeyboardKey.mailForward,
'MailReply': PhysicalKeyboardKey.mailReply,
'MailSend': PhysicalKeyboardKey.mailSend,
'MediaFastForward': PhysicalKeyboardKey.mediaFastForward,
'MediaPause': PhysicalKeyboardKey.mediaPause,
'MediaPlay': PhysicalKeyboardKey.mediaPlay,
'MediaPlayPause': PhysicalKeyboardKey.mediaPlayPause,
'MediaRecord': PhysicalKeyboardKey.mediaRecord,
'MediaRewind': PhysicalKeyboardKey.mediaRewind,
'MediaSelect': PhysicalKeyboardKey.mediaSelect,
'MediaStop': PhysicalKeyboardKey.mediaStop,
'MediaTrackNext': PhysicalKeyboardKey.mediaTrackNext,
'MediaTrackPrevious': PhysicalKeyboardKey.mediaTrackPrevious,
'MetaLeft': PhysicalKeyboardKey.metaLeft,
'MetaRight': PhysicalKeyboardKey.metaRight,
'MicrophoneMuteToggle': PhysicalKeyboardKey.microphoneMuteToggle,
'Minus': PhysicalKeyboardKey.minus,
'NonConvert': PhysicalKeyboardKey.nonConvert,
'NumLock': PhysicalKeyboardKey.numLock,
'Numpad0': PhysicalKeyboardKey.numpad0,
'Numpad1': PhysicalKeyboardKey.numpad1,
'Numpad2': PhysicalKeyboardKey.numpad2,
'Numpad3': PhysicalKeyboardKey.numpad3,
'Numpad4': PhysicalKeyboardKey.numpad4,
'Numpad5': PhysicalKeyboardKey.numpad5,
'Numpad6': PhysicalKeyboardKey.numpad6,
'Numpad7': PhysicalKeyboardKey.numpad7,
'Numpad8': PhysicalKeyboardKey.numpad8,
'Numpad9': PhysicalKeyboardKey.numpad9,
'NumpadAdd': PhysicalKeyboardKey.numpadAdd,
'NumpadBackspace': PhysicalKeyboardKey.numpadBackspace,
'NumpadClear': PhysicalKeyboardKey.numpadClear,
'NumpadClearEntry': PhysicalKeyboardKey.numpadClearEntry,
'NumpadComma': PhysicalKeyboardKey.numpadComma,
'NumpadDecimal': PhysicalKeyboardKey.numpadDecimal,
'NumpadDivide': PhysicalKeyboardKey.numpadDivide,
'NumpadEnter': PhysicalKeyboardKey.numpadEnter,
'NumpadEqual': PhysicalKeyboardKey.numpadEqual,
'NumpadMemoryAdd': PhysicalKeyboardKey.numpadMemoryAdd,
'NumpadMemoryClear': PhysicalKeyboardKey.numpadMemoryClear,
'NumpadMemoryRecall': PhysicalKeyboardKey.numpadMemoryRecall,
'NumpadMemoryStore': PhysicalKeyboardKey.numpadMemoryStore,
'NumpadMemorySubtract': PhysicalKeyboardKey.numpadMemorySubtract,
'NumpadMultiply': PhysicalKeyboardKey.numpadMultiply,
'NumpadParenLeft': PhysicalKeyboardKey.numpadParenLeft,
'NumpadParenRight': PhysicalKeyboardKey.numpadParenRight,
'NumpadSubtract': PhysicalKeyboardKey.numpadSubtract,
'Open': PhysicalKeyboardKey.open,
'PageDown': PhysicalKeyboardKey.pageDown,
'PageUp': PhysicalKeyboardKey.pageUp,
'Paste': PhysicalKeyboardKey.paste,
'Pause': PhysicalKeyboardKey.pause,
'Period': PhysicalKeyboardKey.period,
'Power': PhysicalKeyboardKey.power,
'PrintScreen': PhysicalKeyboardKey.printScreen,
'PrivacyScreenToggle': PhysicalKeyboardKey.privacyScreenToggle,
'Props': PhysicalKeyboardKey.props,
'Quote': PhysicalKeyboardKey.quote,
'Resume': PhysicalKeyboardKey.resume,
'ScrollLock': PhysicalKeyboardKey.scrollLock,
'Select': PhysicalKeyboardKey.select,
'SelectTask': PhysicalKeyboardKey.selectTask,
'Semicolon': PhysicalKeyboardKey.semicolon,
'ShiftLeft': PhysicalKeyboardKey.shiftLeft,
'ShiftRight': PhysicalKeyboardKey.shiftRight,
'ShowAllWindows': PhysicalKeyboardKey.showAllWindows,
'Slash': PhysicalKeyboardKey.slash,
'Sleep': PhysicalKeyboardKey.sleep,
'Space': PhysicalKeyboardKey.space,
'Super': PhysicalKeyboardKey.superKey,
'Suspend': PhysicalKeyboardKey.suspend,
'Tab': PhysicalKeyboardKey.tab,
'Turbo': PhysicalKeyboardKey.turbo,
'Undo': PhysicalKeyboardKey.undo,
'WakeUp': PhysicalKeyboardKey.wakeUp,
'ZoomToggle': PhysicalKeyboardKey.zoomToggle,
};