kWebToPhysicalKey top-level constant

Map<String, PhysicalKeyboardKey> const kWebToPhysicalKey

Maps Web KeyboardEvent codes to the matching PhysicalKeyboardKey.

Implementation

const Map<String, PhysicalKeyboardKey> kWebToPhysicalKey = <String, PhysicalKeyboardKey>{
  'None': PhysicalKeyboardKey.none,
  'Hyper': PhysicalKeyboardKey.hyper,
  'Super': PhysicalKeyboardKey.superKey,
  'FnLock': PhysicalKeyboardKey.fnLock,
  'Suspend': PhysicalKeyboardKey.suspend,
  'Resume': PhysicalKeyboardKey.resume,
  'Turbo': PhysicalKeyboardKey.turbo,
  'PrivacyScreenToggle': PhysicalKeyboardKey.privacyScreenToggle,
  'Sleep': PhysicalKeyboardKey.sleep,
  'WakeUp': PhysicalKeyboardKey.wakeUp,
  'DisplayToggleIntExt': PhysicalKeyboardKey.displayToggleIntExt,
  '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,
  '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,
  'Digit0': PhysicalKeyboardKey.digit0,
  'Enter': PhysicalKeyboardKey.enter,
  'Escape': PhysicalKeyboardKey.escape,
  'Backspace': PhysicalKeyboardKey.backspace,
  'Tab': PhysicalKeyboardKey.tab,
  'Space': PhysicalKeyboardKey.space,
  'Minus': PhysicalKeyboardKey.minus,
  'Equal': PhysicalKeyboardKey.equal,
  'BracketLeft': PhysicalKeyboardKey.bracketLeft,
  'BracketRight': PhysicalKeyboardKey.bracketRight,
  'Backslash': PhysicalKeyboardKey.backslash,
  'Semicolon': PhysicalKeyboardKey.semicolon,
  'Quote': PhysicalKeyboardKey.quote,
  'Backquote': PhysicalKeyboardKey.backquote,
  'Comma': PhysicalKeyboardKey.comma,
  'Period': PhysicalKeyboardKey.period,
  'Slash': PhysicalKeyboardKey.slash,
  'CapsLock': PhysicalKeyboardKey.capsLock,
  'F1': PhysicalKeyboardKey.f1,
  'F2': PhysicalKeyboardKey.f2,
  'F3': PhysicalKeyboardKey.f3,
  'F4': PhysicalKeyboardKey.f4,
  'F5': PhysicalKeyboardKey.f5,
  'F6': PhysicalKeyboardKey.f6,
  'F7': PhysicalKeyboardKey.f7,
  'F8': PhysicalKeyboardKey.f8,
  'F9': PhysicalKeyboardKey.f9,
  'F10': PhysicalKeyboardKey.f10,
  'F11': PhysicalKeyboardKey.f11,
  'F12': PhysicalKeyboardKey.f12,
  'PrintScreen': PhysicalKeyboardKey.printScreen,
  'ScrollLock': PhysicalKeyboardKey.scrollLock,
  'Pause': PhysicalKeyboardKey.pause,
  'Insert': PhysicalKeyboardKey.insert,
  'Home': PhysicalKeyboardKey.home,
  'PageUp': PhysicalKeyboardKey.pageUp,
  'Delete': PhysicalKeyboardKey.delete,
  'End': PhysicalKeyboardKey.end,
  'PageDown': PhysicalKeyboardKey.pageDown,
  'ArrowRight': PhysicalKeyboardKey.arrowRight,
  'ArrowLeft': PhysicalKeyboardKey.arrowLeft,
  'ArrowDown': PhysicalKeyboardKey.arrowDown,
  'ArrowUp': PhysicalKeyboardKey.arrowUp,
  'NumLock': PhysicalKeyboardKey.numLock,
  'NumpadDivide': PhysicalKeyboardKey.numpadDivide,
  'NumpadMultiply': PhysicalKeyboardKey.numpadMultiply,
  'NumpadSubtract': PhysicalKeyboardKey.numpadSubtract,
  'NumpadAdd': PhysicalKeyboardKey.numpadAdd,
  'NumpadEnter': PhysicalKeyboardKey.numpadEnter,
  '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,
  'Numpad0': PhysicalKeyboardKey.numpad0,
  'NumpadDecimal': PhysicalKeyboardKey.numpadDecimal,
  'IntlBackslash': PhysicalKeyboardKey.intlBackslash,
  'ContextMenu': PhysicalKeyboardKey.contextMenu,
  'Power': PhysicalKeyboardKey.power,
  'NumpadEqual': PhysicalKeyboardKey.numpadEqual,
  'F13': PhysicalKeyboardKey.f13,
  'F14': PhysicalKeyboardKey.f14,
  'F15': PhysicalKeyboardKey.f15,
  'F16': PhysicalKeyboardKey.f16,
  'F17': PhysicalKeyboardKey.f17,
  'F18': PhysicalKeyboardKey.f18,
  'F19': PhysicalKeyboardKey.f19,
  'F20': PhysicalKeyboardKey.f20,
  'F21': PhysicalKeyboardKey.f21,
  'F22': PhysicalKeyboardKey.f22,
  'F23': PhysicalKeyboardKey.f23,
  'F24': PhysicalKeyboardKey.f24,
  'Open': PhysicalKeyboardKey.open,
  'Help': PhysicalKeyboardKey.help,
  'Select': PhysicalKeyboardKey.select,
  'Again': PhysicalKeyboardKey.again,
  'Undo': PhysicalKeyboardKey.undo,
  'Cut': PhysicalKeyboardKey.cut,
  'Copy': PhysicalKeyboardKey.copy,
  'Paste': PhysicalKeyboardKey.paste,
  'Find': PhysicalKeyboardKey.find,
  'AudioVolumeMute': PhysicalKeyboardKey.audioVolumeMute,
  'AudioVolumeUp': PhysicalKeyboardKey.audioVolumeUp,
  'AudioVolumeDown': PhysicalKeyboardKey.audioVolumeDown,
  'NumpadComma': PhysicalKeyboardKey.numpadComma,
  'IntlRo': PhysicalKeyboardKey.intlRo,
  'KanaMode': PhysicalKeyboardKey.kanaMode,
  'IntlYen': PhysicalKeyboardKey.intlYen,
  'Convert': PhysicalKeyboardKey.convert,
  'NonConvert': PhysicalKeyboardKey.nonConvert,
  'Lang1': PhysicalKeyboardKey.lang1,
  'Lang2': PhysicalKeyboardKey.lang2,
  'Lang3': PhysicalKeyboardKey.lang3,
  'Lang4': PhysicalKeyboardKey.lang4,
  'Lang5': PhysicalKeyboardKey.lang5,
  'Abort': PhysicalKeyboardKey.abort,
  'Props': PhysicalKeyboardKey.props,
  'NumpadParenLeft': PhysicalKeyboardKey.numpadParenLeft,
  'NumpadParenRight': PhysicalKeyboardKey.numpadParenRight,
  'NumpadBackspace': PhysicalKeyboardKey.numpadBackspace,
  'NumpadMemoryStore': PhysicalKeyboardKey.numpadMemoryStore,
  'NumpadMemoryRecall': PhysicalKeyboardKey.numpadMemoryRecall,
  'NumpadMemoryClear': PhysicalKeyboardKey.numpadMemoryClear,
  'NumpadMemoryAdd': PhysicalKeyboardKey.numpadMemoryAdd,
  'NumpadMemorySubtract': PhysicalKeyboardKey.numpadMemorySubtract,
  'NumpadClear': PhysicalKeyboardKey.numpadClear,
  'NumpadClearEntry': PhysicalKeyboardKey.numpadClearEntry,
  'ControlLeft': PhysicalKeyboardKey.controlLeft,
  'ShiftLeft': PhysicalKeyboardKey.shiftLeft,
  'AltLeft': PhysicalKeyboardKey.altLeft,
  'MetaLeft': PhysicalKeyboardKey.metaLeft,
  'ControlRight': PhysicalKeyboardKey.controlRight,
  'ShiftRight': PhysicalKeyboardKey.shiftRight,
  'AltRight': PhysicalKeyboardKey.altRight,
  'MetaRight': PhysicalKeyboardKey.metaRight,
  'BrightnessUp': PhysicalKeyboardKey.brightnessUp,
  'BrightnessDown': PhysicalKeyboardKey.brightnessDown,
  'MediaPlay': PhysicalKeyboardKey.mediaPlay,
  'MediaPause': PhysicalKeyboardKey.mediaPause,
  'MediaRecord': PhysicalKeyboardKey.mediaRecord,
  'MediaFastForward': PhysicalKeyboardKey.mediaFastForward,
  'MediaRewind': PhysicalKeyboardKey.mediaRewind,
  'MediaTrackNext': PhysicalKeyboardKey.mediaTrackNext,
  'MediaTrackPrevious': PhysicalKeyboardKey.mediaTrackPrevious,
  'MediaStop': PhysicalKeyboardKey.mediaStop,
  'Eject': PhysicalKeyboardKey.eject,
  'MediaPlayPause': PhysicalKeyboardKey.mediaPlayPause,
  'MediaSelect': PhysicalKeyboardKey.mediaSelect,
  'LaunchMail': PhysicalKeyboardKey.launchMail,
  'LaunchApp2': PhysicalKeyboardKey.launchApp2,
  'LaunchApp1': PhysicalKeyboardKey.launchApp1,
  'LaunchControlPanel': PhysicalKeyboardKey.launchControlPanel,
  'SelectTask': PhysicalKeyboardKey.selectTask,
  'LaunchScreenSaver': PhysicalKeyboardKey.launchScreenSaver,
  'LaunchAssistant': PhysicalKeyboardKey.launchAssistant,
  'BrowserSearch': PhysicalKeyboardKey.browserSearch,
  'BrowserHome': PhysicalKeyboardKey.browserHome,
  'BrowserBack': PhysicalKeyboardKey.browserBack,
  'BrowserForward': PhysicalKeyboardKey.browserForward,
  'BrowserStop': PhysicalKeyboardKey.browserStop,
  'BrowserRefresh': PhysicalKeyboardKey.browserRefresh,
  'BrowserFavorites': PhysicalKeyboardKey.browserFavorites,
  'ZoomToggle': PhysicalKeyboardKey.zoomToggle,
  'MailReply': PhysicalKeyboardKey.mailReply,
  'MailForward': PhysicalKeyboardKey.mailForward,
  'MailSend': PhysicalKeyboardKey.mailSend,
  'KeyboardLayoutSelect': PhysicalKeyboardKey.keyboardLayoutSelect,
  'ShowAllWindows': PhysicalKeyboardKey.showAllWindows,
  'GameButton1': PhysicalKeyboardKey.gameButton1,
  'GameButton2': PhysicalKeyboardKey.gameButton2,
  'GameButton3': PhysicalKeyboardKey.gameButton3,
  'GameButton4': PhysicalKeyboardKey.gameButton4,
  'GameButton5': PhysicalKeyboardKey.gameButton5,
  'GameButton6': PhysicalKeyboardKey.gameButton6,
  'GameButton7': PhysicalKeyboardKey.gameButton7,
  'GameButton8': PhysicalKeyboardKey.gameButton8,
  'GameButton9': PhysicalKeyboardKey.gameButton9,
  'GameButton10': PhysicalKeyboardKey.gameButton10,
  'GameButton11': PhysicalKeyboardKey.gameButton11,
  'GameButton12': PhysicalKeyboardKey.gameButton12,
  'GameButton13': PhysicalKeyboardKey.gameButton13,
  'GameButton14': PhysicalKeyboardKey.gameButton14,
  'GameButton15': PhysicalKeyboardKey.gameButton15,
  'GameButton16': PhysicalKeyboardKey.gameButton16,
  '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,
  'Fn': PhysicalKeyboardKey.fn,
}