From e67f813404a47733c6253b171ecd7a666d7e4640 Mon Sep 17 00:00:00 2001 From: ling1726 Date: Thu, 15 Jul 2021 08:57:29 +0200 Subject: [PATCH] feat(keyboard-keys): Export keys and legacy keyCodes (#18896) * feat(keyboard-keys): Export keys and legacy keyCodes This PR implements what was proposed in #18587 and exports all named `key` values specified by w3c. Also adds legacy keycode exports as a deep import. Happy to take any suggestions to avoid this. Originallly this was the plan: ```ts export * as keyCodes from './keyCodes' ``` but unfortunately API extractor does not support this syntax microsoft/rushstack#2780 * remove deep export * update fixture --- packages/keyboard-keys/README.md | 44 +- .../bundle-size/MultipleKeyCodes.fixture.js | 7 + .../bundle-size/MultipleKeys.fixture.js | 7 + .../bundle-size/SingleKey.fixture.js | 7 + .../bundle-size/SingleKeyCode.fixture.js | 7 + .../keyboard-keys/etc/keyboard-keys.api.md | 1517 +++++++++++++++++ packages/keyboard-keys/src/index.ts | 9 +- packages/keyboard-keys/src/keyCodes.ts | 163 ++ packages/keyboard-keys/src/keys.ts | 286 ++++ 9 files changed, 2044 insertions(+), 3 deletions(-) create mode 100644 packages/keyboard-keys/bundle-size/MultipleKeyCodes.fixture.js create mode 100644 packages/keyboard-keys/bundle-size/MultipleKeys.fixture.js create mode 100644 packages/keyboard-keys/bundle-size/SingleKey.fixture.js create mode 100644 packages/keyboard-keys/bundle-size/SingleKeyCode.fixture.js create mode 100644 packages/keyboard-keys/src/keyCodes.ts create mode 100644 packages/keyboard-keys/src/keys.ts diff --git a/packages/keyboard-keys/README.md b/packages/keyboard-keys/README.md index 7c3bc7074a29f..6b3063ccd2d6b 100644 --- a/packages/keyboard-keys/README.md +++ b/packages/keyboard-keys/README.md @@ -1,3 +1,45 @@ # @fluentui/keyboard-keys -Contains a set of keyboard constants for key and keyCode comparison in components +Contains a set of keyboard constants for key and keyCode comparison in components. This package contains +**named key values** from [The w3 uievents-key specification](https://www.w3.org/TR/uievents-key/). + +Unicode values are not included since there are a lot of locales to consider and they provide no benefit since +unicode characters can be used directly in code. + +# Usage + +```ts +import { Enter } from '@fluentui/keyboard-keys'; + +const onKeyDown = (e: React.KeyboardEvent) => { + if (e.key === Enter) { + // ... + } + + // Unicode characters 'a', '1', '%'... + // should be used directly in code + if (e.key === 'a') { + // ... + } +}; +``` + +## Legacy keyCode + +In order to migrate easily from `@fluentui/keyboard-key` legacy `keyCode` support is available in this library but +is not encouraged for reuse since this propoerty has been deprecated for a while and will be removed in future +standards. + +```ts +import { keyCodes } from '@fluentui/keyboard-keys'; + +const onKeyDown = (e: React.KeyboardEvent) => { + if (e.keyCode === keyCodes.Enter) { + // ... + } + + if (e.key === keyCodes.a) { + // ... + } +}; +``` diff --git a/packages/keyboard-keys/bundle-size/MultipleKeyCodes.fixture.js b/packages/keyboard-keys/bundle-size/MultipleKeyCodes.fixture.js new file mode 100644 index 0000000000000..d5744d3ab079b --- /dev/null +++ b/packages/keyboard-keys/bundle-size/MultipleKeyCodes.fixture.js @@ -0,0 +1,7 @@ +import { keyCodes } from '@fluentui/keyboard-keys'; + +console.log(keyCodes.Enter, keyCodes.Tab, keyCodes.ArrowDown, keyCodes.ArrowLeft, keyCodes.ArrowRight); + +export default { + name: 'Multiple keyCodes', +}; diff --git a/packages/keyboard-keys/bundle-size/MultipleKeys.fixture.js b/packages/keyboard-keys/bundle-size/MultipleKeys.fixture.js new file mode 100644 index 0000000000000..639509ed47a06 --- /dev/null +++ b/packages/keyboard-keys/bundle-size/MultipleKeys.fixture.js @@ -0,0 +1,7 @@ +import { Enter, Tab, ArrowDown, ArrowLeft, ArrowRight } from '@fluentui/keyboard-keys'; + +console.log(Enter, Tab, ArrowDown, ArrowLeft, ArrowRight); + +export default { + name: 'Multiple keys', +}; diff --git a/packages/keyboard-keys/bundle-size/SingleKey.fixture.js b/packages/keyboard-keys/bundle-size/SingleKey.fixture.js new file mode 100644 index 0000000000000..70bebab1e1b71 --- /dev/null +++ b/packages/keyboard-keys/bundle-size/SingleKey.fixture.js @@ -0,0 +1,7 @@ +import { Enter } from '@fluentui/keyboard-keys'; + +console.log(Enter); + +export default { + name: 'Single key', +}; diff --git a/packages/keyboard-keys/bundle-size/SingleKeyCode.fixture.js b/packages/keyboard-keys/bundle-size/SingleKeyCode.fixture.js new file mode 100644 index 0000000000000..4ec78535f8ad0 --- /dev/null +++ b/packages/keyboard-keys/bundle-size/SingleKeyCode.fixture.js @@ -0,0 +1,7 @@ +import { keyCodes } from '@fluentui/keyboard-keys'; + +console.log(keyCodes.Enter); + +export default { + name: 'Single keyCode', +}; diff --git a/packages/keyboard-keys/etc/keyboard-keys.api.md b/packages/keyboard-keys/etc/keyboard-keys.api.md index 4d56b350fffef..1d7f69aa998e6 100644 --- a/packages/keyboard-keys/etc/keyboard-keys.api.md +++ b/packages/keyboard-keys/etc/keyboard-keys.api.md @@ -4,6 +4,1523 @@ ```ts +// @public (undocumented) +const A = 65; + +// @public (undocumented) +const a = 65; + +// @public (undocumented) +export const Accept = "Accept"; + +// @public (undocumented) +const Accept_2 = 30; + +// @public (undocumented) +export const Again = "Again"; + +// @public (undocumented) +export const AllCandidates = "AllCandidates"; + +// @public (undocumented) +export const Alphanumeric = "Alphanumeric"; + +// @public (undocumented) +export const Alt = "Alt"; + +// @public (undocumented) +const Alt_2 = 18; + +// @public (undocumented) +export const AltGraph = "AltGraph"; + +// @public (undocumented) +const AltGraph_2 = 225; + +// @public (undocumented) +const Ampersand = 55; + +// @public (undocumented) +export const AppSwitch = "AppSwitch"; + +// @public (undocumented) +export const ArrowDown = "ArrowDown"; + +// @public (undocumented) +const ArrowDown_2 = 40; + +// @public (undocumented) +export const ArrowLeft = "ArrowLeft"; + +// @public (undocumented) +const ArrowLeft_2 = 37; + +// @public (undocumented) +export const ArrowRight = "ArrowRight"; + +// @public (undocumented) +const ArrowRight_2 = 39; + +// @public (undocumented) +export const ArrowUp = "ArrowUp"; + +// @public (undocumented) +const ArrowUp_2 = 38; + +// @public (undocumented) +const AtSign = 50; + +// @public (undocumented) +export const Attn = "Attn"; + +// @public (undocumented) +const Attn_2 = 246; + +// @public (undocumented) +export const AudioBalanceLeft = "AudioBalanceLeft"; + +// @public (undocumented) +export const AudioBalanceRight = "AudioBalanceRight"; + +// @public (undocumented) +export const AudioBassBoostDown = "AudioBassBoostDown"; + +// @public (undocumented) +export const AudioBassBoostToggle = "AudioBassBoostToggle"; + +// @public (undocumented) +export const AudioBassBoostUp = "AudioBassBoostUp"; + +// @public (undocumented) +export const AudioFaderFront = "AudioFaderFront"; + +// @public (undocumented) +export const AudioFaderRear = "AudioFaderRear"; + +// @public (undocumented) +export const AudioSurroundModeNext = "AudioSurroundModeNext"; + +// @public (undocumented) +export const AudioTrebleDown = "AudioTrebleDown"; + +// @public (undocumented) +export const AudioTrebleUp = "AudioTrebleUp"; + +// @public (undocumented) +export const AudioVolumeDown = "AudioVolumeDown"; + +// @public (undocumented) +export const AudioVolumeMute = "AudioVolumeMute"; + +// @public (undocumented) +export const AudioVolumeUp = "AudioVolumeUp"; + +// @public (undocumented) +export const AVRInput = "AVRInput"; + +// @public (undocumented) +export const AVRPower = "AVRPower"; + +// @public (undocumented) +const B = 66; + +// @public (undocumented) +const b = 66; + +// @public (undocumented) +const BackSlash = 220; + +// @public (undocumented) +export const Backspace = "Backspace"; + +// @public (undocumented) +const Backspace_2 = 8; + +// @public (undocumented) +export const BrightnessDown = "BrightnessDown"; + +// @public (undocumented) +export const BrightnessUp = "BrightnessUp"; + +// @public (undocumented) +export const BrowserBack = "BrowserBack"; + +// @public (undocumented) +export const BrowserFavorites = "BrowserFavorites"; + +// @public (undocumented) +export const BrowserForward = "BrowserForward"; + +// @public (undocumented) +export const BrowserHome = "BrowserHome"; + +// @public (undocumented) +export const BrowserRefresh = "BrowserRefresh"; + +// @public (undocumented) +export const BrowserSearch = "BrowserSearch"; + +// @public (undocumented) +export const BrowserStop = "BrowserStop"; + +// @public (undocumented) +const C = 67; + +// @public (undocumented) +const c = 67; + +// @public (undocumented) +export const Call = "Call"; + +// @public (undocumented) +export const Camera = "Camera"; + +// @public (undocumented) +export const CameraFocus = "CameraFocus"; + +// @public (undocumented) +export const Cancel = "Cancel"; + +// @public (undocumented) +const Cancel_2 = 3; + +// @public (undocumented) +export const CapsLock = "CapsLock"; + +// @public (undocumented) +const CapsLock_2 = 20; + +// @public (undocumented) +const Caret = 54; + +// @public (undocumented) +export const ChannelDown = "ChannelDown"; + +// @public (undocumented) +export const ChannelUp = "ChannelUp"; + +// @public (undocumented) +export const Clear = "Clear"; + +// @public (undocumented) +const Clear_2 = 12; + +// @public (undocumented) +export const Close = "Close"; + +// @public (undocumented) +export const ClosedCaptionToggle = "ClosedCaptionToggle"; + +// @public (undocumented) +export const CodeInput = "CodeInput"; + +// @public (undocumented) +export const ColorF0Red = "ColorF0Red"; + +// @public (undocumented) +export const ColorF1Green = "ColorF1Green"; + +// @public (undocumented) +export const ColorF2Yellow = "ColorF2Yellow"; + +// @public (undocumented) +export const ColorF3Blue = "ColorF3Blue"; + +// @public (undocumented) +export const ColorF4Grey = "ColorF4Grey"; + +// @public (undocumented) +export const ColorF5Brown = "ColorF5Brown"; + +// @public (undocumented) +const Comma = 188; + +// @public (undocumented) +export const Compose = "Compose"; + +// @public (undocumented) +export const ContextMenu = "ContextMenu"; + +// @public (undocumented) +const ContextMenu_2 = 93; + +// @public (undocumented) +export const Control = "Control"; + +// @public (undocumented) +const Control_2 = 17; + +// @public (undocumented) +export const Convert = "Convert"; + +// @public (undocumented) +const Convert_2 = 28; + +// @public (undocumented) +export const Copy = "Copy"; + +// @public (undocumented) +export const CrSel = "CrSel"; + +// @public (undocumented) +const CrSel_2 = 247; + +// @public (undocumented) +export const Cut = "Cut"; + +// @public (undocumented) +const D = 68; + +// @public (undocumented) +const d = 68; + +// @public (undocumented) +export const Dead = "Dead"; + +// @public (undocumented) +const Decimal = 190; + +// @public (undocumented) +export const Delete = "Delete"; + +// @public (undocumented) +const Delete_2 = 46; + +// @public (undocumented) +const Digit0 = 48; + +// @public (undocumented) +const Digit1 = 49; + +// @public (undocumented) +const Digit2 = 50; + +// @public (undocumented) +const Digit3 = 51; + +// @public (undocumented) +const Digit4 = 52; + +// @public (undocumented) +const Digit5 = 53; + +// @public (undocumented) +const Digit6 = 54; + +// @public (undocumented) +const Digit7 = 55; + +// @public (undocumented) +const Digit8 = 56; + +// @public (undocumented) +const Digit9 = 57; + +// @public (undocumented) +export const Dimmer = "Dimmer"; + +// @public (undocumented) +export const DisplaySwap = "DisplaySwap"; + +// @public (undocumented) +const DollarSign = 52; + +// @public (undocumented) +const DoubleQuote = 222; + +// @public (undocumented) +export const DVR = "DVR"; + +// @public (undocumented) +const E = 69; + +// @public (undocumented) +const e = 69; + +// @public (undocumented) +export const Eisu = "Eisu"; + +// @public (undocumented) +export const Eject = "Eject"; + +// @public (undocumented) +export const End = "End"; + +// @public (undocumented) +const End_2 = 35; + +// @public (undocumented) +export const EndCall = "EndCall"; + +// @public (undocumented) +export const Enter = "Enter"; + +// @public (undocumented) +const Enter_2 = 13; + +// @public (undocumented) +const EqualsSign = 187; + +// @public (undocumented) +export const EraseEof = "EraseEof"; + +// @public (undocumented) +const EraseEof_2 = 249; + +// @public (undocumented) +export const Escape = "Escape"; + +// @public (undocumented) +const Escape_2 = 27; + +// @public (undocumented) +const ExclamationPoint = 49; + +// @public (undocumented) +export const Execute = "Execute"; + +// @public (undocumented) +const Execute_2 = 43; + +// @public (undocumented) +export const Exit = "Exit"; + +// @public (undocumented) +export const ExSel = "ExSel"; + +// @public (undocumented) +const ExSel_2 = 248; + +// @public (undocumented) +const F = 70; + +// @public (undocumented) +const f = 70; + +// @public (undocumented) +export const F1 = "F1"; + +// @public (undocumented) +export const F10 = "F10"; + +// @public (undocumented) +const F10_2 = 121; + +// @public (undocumented) +export const F11 = "F11"; + +// @public (undocumented) +const F11_2 = 122; + +// @public (undocumented) +export const F12 = "F12"; + +// @public (undocumented) +const F12_2 = 123; + +// @public (undocumented) +const F13 = 124; + +// @public (undocumented) +const F14 = 125; + +// @public (undocumented) +const F15 = 126; + +// @public (undocumented) +const F16 = 127; + +// @public (undocumented) +const F17 = 128; + +// @public (undocumented) +const F18 = 129; + +// @public (undocumented) +const F19 = 130; + +// @public (undocumented) +const F1_2 = 112; + +// @public (undocumented) +export const F2 = "F2"; + +// @public (undocumented) +const F20 = 131; + +// @public (undocumented) +const F21 = 132; + +// @public (undocumented) +const F22 = 133; + +// @public (undocumented) +const F23 = 134; + +// @public (undocumented) +const F24 = 135; + +// @public (undocumented) +const F2_2 = 113; + +// @public (undocumented) +export const F3 = "F3"; + +// @public (undocumented) +const F3_2 = 114; + +// @public (undocumented) +export const F4 = "F4"; + +// @public (undocumented) +const F4_2 = 115; + +// @public (undocumented) +export const F5 = "F5"; + +// @public (undocumented) +const F5_2 = 116; + +// @public (undocumented) +export const F6 = "F6"; + +// @public (undocumented) +const F6_2 = 117; + +// @public (undocumented) +export const F7 = "F7"; + +// @public (undocumented) +const F7_2 = 118; + +// @public (undocumented) +export const F8 = "F8"; + +// @public (undocumented) +const F8_2 = 119; + +// @public (undocumented) +export const F9 = "F9"; + +// @public (undocumented) +const F9_2 = 120; + +// @public (undocumented) +export const FavoriteClear0 = "FavoriteClear0"; + +// @public (undocumented) +export const FavoriteClear1 = "FavoriteClear1"; + +// @public (undocumented) +export const FavoriteClear2 = "FavoriteClear2"; + +// @public (undocumented) +export const FavoriteClear3 = "FavoriteClear3"; + +// @public (undocumented) +export const FavoriteRecall0 = "FavoriteRecall0"; + +// @public (undocumented) +export const FavoriteRecall1 = "FavoriteRecall1"; + +// @public (undocumented) +export const FavoriteRecall2 = "FavoriteRecall2"; + +// @public (undocumented) +export const FavoriteRecall3 = "FavoriteRecall3"; + +// @public (undocumented) +export const FavoriteStore0 = "FavoriteStore0"; + +// @public (undocumented) +export const FavoriteStore1 = "FavoriteStore1"; + +// @public (undocumented) +export const FavoriteStore2 = "FavoriteStore2"; + +// @public (undocumented) +export const FavoriteStore3 = "FavoriteStore3"; + +// @public (undocumented) +export const FinalMode = "FinalMode"; + +// @public (undocumented) +export const Find = "Find"; + +// @public (undocumented) +export const Fn = "Fn"; + +// @public (undocumented) +export const FnLock = "FnLock"; + +// @public (undocumented) +const ForwardSlash = 191; + +// @public (undocumented) +const G = 71; + +// @public (undocumented) +const g = 71; + +// @public (undocumented) +export const GoBack = "GoBack"; + +// @public (undocumented) +export const GoHome = "GoHome"; + +// @public (undocumented) +const GraveAccent = 192; + +// @public (undocumented) +export const GroupFirst = "GroupFirst"; + +// @public (undocumented) +export const GroupLast = "GroupLast"; + +// @public (undocumented) +export const GroupNext = "GroupNext"; + +// @public (undocumented) +export const GroupPrevious = "GroupPrevious"; + +// @public (undocumented) +export const Guide = "Guide"; + +// @public (undocumented) +export const GuideNextDay = "GuideNextDay"; + +// @public (undocumented) +export const GuidePreviousDay = "GuidePreviousDay"; + +// @public (undocumented) +const H = 72; + +// @public (undocumented) +const h = 72; + +// @public (undocumented) +export const HangulMode = "HangulMode"; + +// @public (undocumented) +export const HanjaMode = "HanjaMode"; + +// @public (undocumented) +export const Hankaku = "Hankaku"; + +// @public (undocumented) +export const HeadsetHook = "HeadsetHook"; + +// @public (undocumented) +export const Help = "Help"; + +// @public (undocumented) +const Help_2 = 6; + +// @public (undocumented) +export const Hibernate = "Hibernate"; + +// @public (undocumented) +export const Hiragana = "Hiragana"; + +// @public (undocumented) +export const HiraganaKatakana = "HiraganaKatakana"; + +// @public (undocumented) +export const Home = "Home"; + +// @public (undocumented) +const Home_2 = 36; + +// @public (undocumented) +export const Hyper = "Hyper"; + +// @public (undocumented) +const I = 73; + +// @public (undocumented) +const i = 73; + +// @public (undocumented) +export const Info = "Info"; + +// @public (undocumented) +export const Insert = "Insert"; + +// @public (undocumented) +const Insert_2 = 45; + +// @public (undocumented) +export const InstantReplay = "InstantReplay"; + +// @public (undocumented) +const J = 74; + +// @public (undocumented) +const j = 74; + +// @public (undocumented) +export const JunjaMode = "JunjaMode"; + +// @public (undocumented) +const K = 75; + +// @public (undocumented) +const k = 75; + +// @public (undocumented) +export const KanaMode = "KanaMode"; + +// @public (undocumented) +export const KanjiMode = "KanjiMode"; + +// @public (undocumented) +export const Katakana = "Katakana"; + +// @public (undocumented) +export const Key11 = "Key11"; + +// @public (undocumented) +export const Key12 = "Key12"; + +declare namespace keyCodes { + export { + Cancel_2 as Cancel, + Help_2 as Help, + Backspace_2 as Backspace, + Tab_2 as Tab, + Clear_2 as Clear, + Enter_2 as Enter, + Shift_2 as Shift, + Control_2 as Control, + Alt_2 as Alt, + Pause_2 as Pause, + CapsLock_2 as CapsLock, + Escape_2 as Escape, + Convert_2 as Convert, + NonConvert_2 as NonConvert, + Accept_2 as Accept, + ModeChange_2 as ModeChange, + Space, + PageUp_2 as PageUp, + PageDown_2 as PageDown, + End_2 as End, + Home_2 as Home, + ArrowLeft_2 as ArrowLeft, + ArrowUp_2 as ArrowUp, + ArrowRight_2 as ArrowRight, + ArrowDown_2 as ArrowDown, + Select_2 as Select, + Print_2 as Print, + Execute_2 as Execute, + PrintScreen_2 as PrintScreen, + Insert_2 as Insert, + Delete_2 as Delete, + Digit0, + RightParenthesis, + Digit1, + ExclamationPoint, + Digit2, + AtSign, + Digit3, + PoundSign, + Digit4, + DollarSign, + Digit5, + PercentSign, + Digit6, + Caret, + Digit7, + Ampersand, + Digit8, + MultiplicationSign, + Digit9, + LeftParenthesis, + a, + A, + b, + B, + c, + C, + d, + D, + e, + E, + f, + F, + g, + G, + h, + H, + i, + I, + j, + J, + k, + K, + l, + L, + m, + M, + n, + N, + o, + O, + p, + P, + q, + Q, + r, + R, + s, + S, + t, + T, + u, + U, + v, + V, + w, + W, + x, + X, + y, + Y, + z, + Z, + OS, + ContextMenu_2 as ContextMenu, + F1_2 as F1, + F2_2 as F2, + F3_2 as F3, + F4_2 as F4, + F5_2 as F5, + F6_2 as F6, + F7_2 as F7, + F8_2 as F8, + F9_2 as F9, + F10_2 as F10, + F11_2 as F11, + F12_2 as F12, + F13, + F14, + F15, + F16, + F17, + F18, + F19, + F20, + F21, + F22, + F23, + F24, + NumLock_2 as NumLock, + ScrollLock_2 as ScrollLock, + VolumeMute, + VolumeDown, + VolumeUp, + Semicolon, + EqualsSign, + PlusSign, + Comma, + LeftAngleBracket, + MinusSign, + Underscore, + Decimal, + RightAngleBracket, + ForwardSlash, + QuestionMark, + GraveAccent, + Tilde, + LeftSquareBracket, + LeftCurlyBrace, + BackSlash, + Pipe, + RightSquareBracket, + RightCurlyBrace, + SingleQuote, + DoubleQuote, + Meta_2 as Meta, + AltGraph_2 as AltGraph, + Attn_2 as Attn, + CrSel_2 as CrSel, + ExSel_2 as ExSel, + EraseEof_2 as EraseEof, + Play_2 as Play, + ZoomOut_2 as ZoomOut + } +} +export { keyCodes } + +// @public (undocumented) +const L = 76; + +// @public (undocumented) +const l = 76; + +// @public (undocumented) +export const LastNumberRedial = "LastNumberRedial"; + +// @public (undocumented) +export const LaunchApplication1 = "LaunchApplication1"; + +// @public (undocumented) +export const LaunchApplication2 = "LaunchApplication2"; + +// @public (undocumented) +export const LaunchCalendar = "LaunchCalendar"; + +// @public (undocumented) +export const LaunchContacts = "LaunchContacts"; + +// @public (undocumented) +export const LaunchMail = "LaunchMail"; + +// @public (undocumented) +export const LaunchMediaPlayer = "LaunchMediaPlayer"; + +// @public (undocumented) +export const LaunchMusicPlayer = "LaunchMusicPlayer"; + +// @public (undocumented) +export const LaunchPhone = "LaunchPhone"; + +// @public (undocumented) +export const LaunchScreenSaver = "LaunchScreenSaver"; + +// @public (undocumented) +export const LaunchSpreadsheet = "LaunchSpreadsheet"; + +// @public (undocumented) +export const LaunchWebBrowser = "LaunchWebBrowser"; + +// @public (undocumented) +export const LaunchWebCam = "LaunchWebCam"; + +// @public (undocumented) +export const LaunchWordProcessor = "LaunchWordProcessor"; + +// @public (undocumented) +const LeftAngleBracket = 188; + +// @public (undocumented) +const LeftCurlyBrace = 219; + +// @public (undocumented) +const LeftParenthesis = 57; + +// @public (undocumented) +const LeftSquareBracket = 219; + +// @public (undocumented) +export const Link = "Link"; + +// @public (undocumented) +export const ListProgram = "ListProgram"; + +// @public (undocumented) +export const LiveContent = "LiveContent"; + +// @public (undocumented) +export const Lock = "Lock"; + +// @public (undocumented) +export const LogOff = "LogOff"; + +// @public (undocumented) +const M = 77; + +// @public (undocumented) +const m = 77; + +// @public (undocumented) +export const MailForward = "MailForward"; + +// @public (undocumented) +export const MailReply = "MailReply"; + +// @public (undocumented) +export const MailSend = "MailSend"; + +// @public (undocumented) +export const MannerMode = "MannerMode"; + +// @public (undocumented) +export const MediaApps = "MediaApps"; + +// @public (undocumented) +export const MediaAudioTrack = "MediaAudioTrack"; + +// @public (undocumented) +export const MediaClose = "MediaClose"; + +// @public (undocumented) +export const MediaFastForward = "MediaFastForward"; + +// @public (undocumented) +export const MediaLast = "MediaLast"; + +// @public (undocumented) +export const MediaNextTrack = "MediaNextTrack"; + +// @public (undocumented) +export const MediaPause = "MediaPause"; + +// @public (undocumented) +export const MediaPlay = "MediaPlay"; + +// @public (undocumented) +export const MediaPlayPause = "MediaPlayPause"; + +// @public (undocumented) +export const MediaPreviousTrack = "MediaPreviousTrack"; + +// @public (undocumented) +export const MediaRecord = "MediaRecord"; + +// @public (undocumented) +export const MediaRewind = "MediaRewind"; + +// @public (undocumented) +export const MediaSkipBackward = "MediaSkipBackward"; + +// @public (undocumented) +export const MediaSkipForward = "MediaSkipForward"; + +// @public (undocumented) +export const MediaStepBackward = "MediaStepBackward"; + +// @public (undocumented) +export const MediaStepForward = "MediaStepForward"; + +// @public (undocumented) +export const MediaStop = "MediaStop"; + +// @public (undocumented) +export const MediaTopMenu = "MediaTopMenu"; + +// @public (undocumented) +export const MediaTrackNext = "MediaTrackNext"; + +// @public (undocumented) +export const MediaTrackPrevious = "MediaTrackPrevious"; + +// @public (undocumented) +export const Meta = "Meta"; + +// @public (undocumented) +const Meta_2 = 224; + +// @public (undocumented) +export const MicrophoneToggle = "MicrophoneToggle"; + +// @public (undocumented) +export const MicrophoneVolumeDown = "MicrophoneVolumeDown"; + +// @public (undocumented) +export const MicrophoneVolumeMute = "MicrophoneVolumeMute"; + +// @public (undocumented) +export const MicrophoneVolumeUp = "MicrophoneVolumeUp"; + +// @public (undocumented) +const MinusSign = 189; + +// @public (undocumented) +export const ModeChange = "ModeChange"; + +// @public (undocumented) +const ModeChange_2 = 31; + +// @public (undocumented) +const MultiplicationSign = 56; + +// @public (undocumented) +const N = 78; + +// @public (undocumented) +const n = 78; + +// @public (undocumented) +export const NavigateIn = "NavigateIn"; + +// @public (undocumented) +export const NavigateNext = "NavigateNext"; + +// @public (undocumented) +export const NavigateOut = "NavigateOut"; + +// @public (undocumented) +export const NavigatePrevious = "NavigatePrevious"; + +// @public (undocumented) +export const New = "New"; + +// @public (undocumented) +export const NextCandidate = "NextCandidate"; + +// @public (undocumented) +export const NextFavoriteChannel = "NextFavoriteChannel"; + +// @public (undocumented) +export const NextUserProfile = "NextUserProfile"; + +// @public (undocumented) +export const NonConvert = "NonConvert"; + +// @public (undocumented) +const NonConvert_2 = 29; + +// @public (undocumented) +const Notification_2 = "Notification"; +export { Notification_2 as Notification } + +// @public (undocumented) +export const NumLock = "NumLock"; + +// @public (undocumented) +const NumLock_2 = 144; + +// @public (undocumented) +const O = 79; + +// @public (undocumented) +const o = 79; + +// @public (undocumented) +export const OnDemand = "OnDemand"; + +// @public (undocumented) +export const Open = "Open"; + +// @public (undocumented) +const OS = 91; + +// @public (undocumented) +const P = 80; + +// @public (undocumented) +const p = 80; + +// @public (undocumented) +export const PageDown = "PageDown"; + +// @public (undocumented) +const PageDown_2 = 34; + +// @public (undocumented) +export const PageUp = "PageUp"; + +// @public (undocumented) +const PageUp_2 = 33; + +// @public (undocumented) +export const Pairing = "Pairing"; + +// @public (undocumented) +export const Paste = "Paste"; + +// @public (undocumented) +export const Pause = "Pause"; + +// @public (undocumented) +const Pause_2 = 19; + +// @public (undocumented) +const PercentSign = 53; + +// @public (undocumented) +export const PinPDown = "PinPDown"; + +// @public (undocumented) +export const PinPMove = "PinPMove"; + +// @public (undocumented) +export const PinPToggle = "PinPToggle"; + +// @public (undocumented) +export const PinPUp = "PinPUp"; + +// @public (undocumented) +const Pipe = 220; + +// @public (undocumented) +export const Play = "Play"; + +// @public (undocumented) +const Play_2 = 250; + +// @public (undocumented) +export const PlaySpeedDown = "PlaySpeedDown"; + +// @public (undocumented) +export const PlaySpeedReset = "PlaySpeedReset"; + +// @public (undocumented) +export const PlaySpeedUp = "PlaySpeedUp"; + +// @public (undocumented) +const PlusSign = 187; + +// @public (undocumented) +const PoundSign = 51; + +// @public (undocumented) +export const Power = "Power"; + +// @public (undocumented) +export const PowerOff = "PowerOff"; + +// @public (undocumented) +export const PreviousCandidate = "PreviousCandidate"; + +// @public (undocumented) +export const Print = "Print"; + +// @public (undocumented) +const Print_2 = 42; + +// @public (undocumented) +export const PrintScreen = "PrintScreen"; + +// @public (undocumented) +const PrintScreen_2 = 44; + +// @public (undocumented) +export const Process = "Process"; + +// @public (undocumented) +export const Props = "Props"; + +// @public (undocumented) +const Q = 81; + +// @public (undocumented) +const q = 81; + +// @public (undocumented) +const QuestionMark = 191; + +// @public (undocumented) +const R = 82; + +// @public (undocumented) +const r = 82; + +// @public (undocumented) +export const RandomToggle = "RandomToggle"; + +// @public (undocumented) +export const RcLowBattery = "RcLowBattery"; + +// @public (undocumented) +export const RecordSpeedNext = "RecordSpeedNext"; + +// @public (undocumented) +export const Redo = "Redo"; + +// @public (undocumented) +export const RfBypass = "RfBypass"; + +// @public (undocumented) +const RightAngleBracket = 190; + +// @public (undocumented) +const RightCurlyBrace = 221; + +// @public (undocumented) +const RightParenthesis = 48; + +// @public (undocumented) +const RightSquareBracket = 221; + +// @public (undocumented) +export const Romaji = "Romaji"; + +// @public (undocumented) +const S = 83; + +// @public (undocumented) +const s = 83; + +// @public (undocumented) +export const Save = "Save"; + +// @public (undocumented) +export const ScanChannelsToggle = "ScanChannelsToggle"; + +// @public (undocumented) +export const ScreenModeNext = "ScreenModeNext"; + +// @public (undocumented) +export const ScrollLock = "ScrollLock"; + +// @public (undocumented) +const ScrollLock_2 = 145; + +// @public (undocumented) +export const Select = "Select"; + +// @public (undocumented) +const Select_2 = 41; + +// @public (undocumented) +const Semicolon = 186; + +// @public (undocumented) +export const Settings = "Settings"; + +// @public (undocumented) +export const Shift = "Shift"; + +// @public (undocumented) +const Shift_2 = 16; + +// @public (undocumented) +export const SingleCandidate = "SingleCandidate"; + +// @public (undocumented) +const SingleQuote = 222; + +// @public (undocumented) +export const Soft1 = "Soft1"; + +// @public (undocumented) +export const Soft2 = "Soft2"; + +// @public (undocumented) +export const Soft3 = "Soft3"; + +// @public (undocumented) +export const Soft4 = "Soft4"; + +// @public (undocumented) +const Space = 32; + +// @public (undocumented) +export const SpeechCorrectionList = "SpeechCorrectionList"; + +// @public (undocumented) +export const SpeechInputToggle = "SpeechInputToggle"; + +// @public (undocumented) +export const SpellCheck = "SpellCheck"; + +// @public (undocumented) +export const SplitScreenToggle = "SplitScreenToggle"; + +// @public (undocumented) +export const Standby = "Standby"; + +// @public (undocumented) +export const STBInput = "STBInput"; + +// @public (undocumented) +export const STBPower = "STBPower"; + +// @public (undocumented) +export const Subtitle = "Subtitle"; + +// @public (undocumented) +export const Super = "Super"; + +// @public (undocumented) +const Symbol_2 = "Symbol"; +export { Symbol_2 as Symbol } + +// @public (undocumented) +export const SymbolLock = "SymbolLock"; + +// @public (undocumented) +const T = 84; + +// @public (undocumented) +const t = 84; + +// @public (undocumented) +export const Tab = "Tab"; + +// @public (undocumented) +const Tab_2 = 9; + +// @public (undocumented) +export const Teletext = "Teletext"; + +// @public (undocumented) +const Tilde = 192; + +// @public (undocumented) +export const TV = "TV"; + +// @public (undocumented) +export const TV3DMode = "TV3DMode"; + +// @public (undocumented) +export const TVAntennaCable = "TVAntennaCable"; + +// @public (undocumented) +export const TVAudioDescription = "TVAudioDescription"; + +// @public (undocumented) +export const TVAudioDescriptionMixDown = "TVAudioDescriptionMixDown"; + +// @public (undocumented) +export const TVAudioDescriptionMixUp = "TVAudioDescriptionMixUp"; + +// @public (undocumented) +export const TVContentsMenu = "TVContentsMenu"; + +// @public (undocumented) +export const TVDataService = "TVDataService"; + +// @public (undocumented) +export const TVInput = "TVInput"; + +// @public (undocumented) +export const TVInputComponent1 = "TVInputComponent1"; + +// @public (undocumented) +export const TVInputComponent2 = "TVInputComponent2"; + +// @public (undocumented) +export const TVInputComposite1 = "TVInputComposite1"; + +// @public (undocumented) +export const TVInputComposite2 = "TVInputComposite2"; + +// @public (undocumented) +export const TVInputHDMI1 = "TVInputHDMI1"; + +// @public (undocumented) +export const TVInputHDMI2 = "TVInputHDMI2"; + +// @public (undocumented) +export const TVInputHDMI3 = "TVInputHDMI3"; + +// @public (undocumented) +export const TVInputHDMI4 = "TVInputHDMI4"; + +// @public (undocumented) +export const TVInputVGA1 = "TVInputVGA1"; + +// @public (undocumented) +export const TVMediaContext = "TVMediaContext"; + +// @public (undocumented) +export const TVNetwork = "TVNetwork"; + +// @public (undocumented) +export const TVNumberEntry = "TVNumberEntry"; + +// @public (undocumented) +export const TVPower = "TVPower"; + +// @public (undocumented) +export const TVRadioService = "TVRadioService"; + +// @public (undocumented) +export const TVSatellite = "TVSatellite"; + +// @public (undocumented) +export const TVSatelliteBS = "TVSatelliteBS"; + +// @public (undocumented) +export const TVSatelliteCS = "TVSatelliteCS"; + +// @public (undocumented) +export const TVSatelliteToggle = "TVSatelliteToggle"; + +// @public (undocumented) +export const TVTerrestrialAnalog = "TVTerrestrialAnalog"; + +// @public (undocumented) +export const TVTerrestrialDigital = "TVTerrestrialDigital"; + +// @public (undocumented) +export const TVTimer = "TVTimer"; + +// @public (undocumented) +const U = 85; + +// @public (undocumented) +const u = 85; + +// @public (undocumented) +const Underscore = 189; + +// @public (undocumented) +export const Undo = "Undo"; + +// @public (undocumented) +export const Unidentified = "Unidentified"; + +// @public (undocumented) +const V = 86; + +// @public (undocumented) +const v = 86; + +// @public (undocumented) +export const VideoModeNext = "VideoModeNext"; + +// @public (undocumented) +export const VoiceDial = "VoiceDial"; + +// @public (undocumented) +const VolumeDown = 182; + +// @public (undocumented) +const VolumeMute = 181; + +// @public (undocumented) +const VolumeUp = 183; + +// @public (undocumented) +const W = 87; + +// @public (undocumented) +const w = 87; + +// @public (undocumented) +export const WakeUp = "WakeUp"; + +// @public (undocumented) +export const Wink = "Wink"; + +// @public (undocumented) +const X = 88; + +// @public (undocumented) +const x = 88; + +// @public (undocumented) +const Y = 89; + +// @public (undocumented) +const y = 89; + +// @public (undocumented) +const Z = 90; + +// @public (undocumented) +const z = 90; + +// @public (undocumented) +export const Zenkaku = "Zenkaku"; + +// @public (undocumented) +export const ZenkakuHankaku = "ZenkakuHankaku"; + +// @public (undocumented) +export const ZoomIn = "ZoomIn"; + +// @public (undocumented) +export const ZoomOut = "ZoomOut"; + +// @public (undocumented) +const ZoomOut_2 = 251; + +// @public (undocumented) +export const ZoomToggle = "ZoomToggle"; // (No @packageDocumentation comment for this package) diff --git a/packages/keyboard-keys/src/index.ts b/packages/keyboard-keys/src/index.ts index aacbad0068e24..722cab7343deb 100644 --- a/packages/keyboard-keys/src/index.ts +++ b/packages/keyboard-keys/src/index.ts @@ -1,2 +1,7 @@ -// TODO: replace with real exports -export {}; +// https://github.com/microsoft/rushstack/issues/2780 +// API extractor can't support namespace exports +// export * as keyCodes from './keyCodes'; +import * as keyCodes from './keyCodes'; +export { keyCodes }; + +export * from './keys'; diff --git a/packages/keyboard-keys/src/keyCodes.ts b/packages/keyboard-keys/src/keyCodes.ts new file mode 100644 index 0000000000000..c3844e6ea1e10 --- /dev/null +++ b/packages/keyboard-keys/src/keyCodes.ts @@ -0,0 +1,163 @@ +export const Cancel = 3; +export const Help = 6; +export const Backspace = 8; +export const Tab = 9; +export const Clear = 12; +export const Enter = 13; +export const Shift = 16; +export const Control = 17; +export const Alt = 18; +export const Pause = 19; +export const CapsLock = 20; +export const Escape = 27; +export const Convert = 28; +export const NonConvert = 29; +export const Accept = 30; +export const ModeChange = 31; +export const Space = 32; +export const PageUp = 33; +export const PageDown = 34; +export const End = 35; +export const Home = 36; +export const ArrowLeft = 37; +export const ArrowUp = 38; +export const ArrowRight = 39; +export const ArrowDown = 40; +export const Select = 41; +export const Print = 42; +export const Execute = 43; +export const PrintScreen = 44; +export const Insert = 45; +export const Delete = 46; +export const Digit0 = 48; +export const RightParenthesis = 48; +export const Digit1 = 49; +export const ExclamationPoint = 49; +export const Digit2 = 50; +export const AtSign = 50; +export const Digit3 = 51; +export const PoundSign = 51; +export const Digit4 = 52; +export const DollarSign = 52; +export const Digit5 = 53; +export const PercentSign = 53; +export const Digit6 = 54; +export const Caret = 54; +export const Digit7 = 55; +export const Ampersand = 55; +export const Digit8 = 56; +export const MultiplicationSign = 56; +export const Digit9 = 57; +export const LeftParenthesis = 57; +export const a = 65; +export const A = 65; +export const b = 66; +export const B = 66; +export const c = 67; +export const C = 67; +export const d = 68; +export const D = 68; +export const e = 69; +export const E = 69; +export const f = 70; +export const F = 70; +export const g = 71; +export const G = 71; +export const h = 72; +export const H = 72; +export const i = 73; +export const I = 73; +export const j = 74; +export const J = 74; +export const k = 75; +export const K = 75; +export const l = 76; +export const L = 76; +export const m = 77; +export const M = 77; +export const n = 78; +export const N = 78; +export const o = 79; +export const O = 79; +export const p = 80; +export const P = 80; +export const q = 81; +export const Q = 81; +export const r = 82; +export const R = 82; +export const s = 83; +export const S = 83; +export const t = 84; +export const T = 84; +export const u = 85; +export const U = 85; +export const v = 86; +export const V = 86; +export const w = 87; +export const W = 87; +export const x = 88; +export const X = 88; +export const y = 89; +export const Y = 89; +export const z = 90; +export const Z = 90; +export const OS = 91; +export const ContextMenu = 93; +export const F1 = 112; +export const F2 = 113; +export const F3 = 114; +export const F4 = 115; +export const F5 = 116; +export const F6 = 117; +export const F7 = 118; +export const F8 = 119; +export const F9 = 120; +export const F10 = 121; +export const F11 = 122; +export const F12 = 123; +export const F13 = 124; +export const F14 = 125; +export const F15 = 126; +export const F16 = 127; +export const F17 = 128; +export const F18 = 129; +export const F19 = 130; +export const F20 = 131; +export const F21 = 132; +export const F22 = 133; +export const F23 = 134; +export const F24 = 135; +export const NumLock = 144; +export const ScrollLock = 145; +export const VolumeMute = 181; +export const VolumeDown = 182; +export const VolumeUp = 183; +export const Semicolon = 186; +export const EqualsSign = 187; +export const PlusSign = 187; +export const Comma = 188; +export const LeftAngleBracket = 188; +export const MinusSign = 189; +export const Underscore = 189; +export const Decimal = 190; +export const RightAngleBracket = 190; +export const ForwardSlash = 191; +export const QuestionMark = 191; +export const GraveAccent = 192; +export const Tilde = 192; +export const LeftSquareBracket = 219; +export const LeftCurlyBrace = 219; +export const BackSlash = 220; +export const Pipe = 220; +export const RightSquareBracket = 221; +export const RightCurlyBrace = 221; +export const SingleQuote = 222; +export const DoubleQuote = 222; +export const Meta = 224; +export const AltGraph = 225; +export const Attn = 246; +export const CrSel = 247; +export const ExSel = 248; +export const EraseEof = 249; +export const Play = 250; +export const ZoomOut = 251; diff --git a/packages/keyboard-keys/src/keys.ts b/packages/keyboard-keys/src/keys.ts new file mode 100644 index 0000000000000..655ac45bca9e3 --- /dev/null +++ b/packages/keyboard-keys/src/keys.ts @@ -0,0 +1,286 @@ +export const Alt = 'Alt'; +export const AltGraph = 'AltGraph'; +export const CapsLock = 'CapsLock'; +export const Control = 'Control'; +export const Fn = 'Fn'; +export const FnLock = 'FnLock'; +export const Meta = 'Meta'; +export const NumLock = 'NumLock'; +export const ScrollLock = 'ScrollLock'; +export const Shift = 'Shift'; +export const Symbol = 'Symbol'; +export const SymbolLock = 'SymbolLock'; +export const Hyper = 'Hyper'; +export const Super = 'Super'; +export const Enter = 'Enter'; +export const Tab = 'Tab'; +export const ArrowDown = 'ArrowDown'; +export const ArrowLeft = 'ArrowLeft'; +export const ArrowRight = 'ArrowRight'; +export const ArrowUp = 'ArrowUp'; +export const End = 'End'; +export const Home = 'Home'; +export const PageDown = 'PageDown'; +export const PageUp = 'PageUp'; +export const Backspace = 'Backspace'; +export const Clear = 'Clear'; +export const Copy = 'Copy'; +export const CrSel = 'CrSel'; +export const Cut = 'Cut'; +export const Delete = 'Delete'; +export const EraseEof = 'EraseEof'; +export const ExSel = 'ExSel'; +export const Insert = 'Insert'; +export const Paste = 'Paste'; +export const Redo = 'Redo'; +export const Undo = 'Undo'; +export const Accept = 'Accept'; +export const Again = 'Again'; +export const Attn = 'Attn'; +export const Cancel = 'Cancel'; +export const ContextMenu = 'ContextMenu'; +export const Escape = 'Escape'; +export const Execute = 'Execute'; +export const Find = 'Find'; +export const Help = 'Help'; +export const Pause = 'Pause'; +export const Play = 'Play'; +export const Props = 'Props'; +export const Select = 'Select'; +export const ZoomIn = 'ZoomIn'; +export const ZoomOut = 'ZoomOut'; +export const BrightnessDown = 'BrightnessDown'; +export const BrightnessUp = 'BrightnessUp'; +export const Eject = 'Eject'; +export const LogOff = 'LogOff'; +export const Power = 'Power'; +export const PowerOff = 'PowerOff'; +export const PrintScreen = 'PrintScreen'; +export const Hibernate = 'Hibernate'; +export const Standby = 'Standby'; +export const WakeUp = 'WakeUp'; +export const AllCandidates = 'AllCandidates'; +export const Alphanumeric = 'Alphanumeric'; +export const CodeInput = 'CodeInput'; +export const Compose = 'Compose'; +export const Convert = 'Convert'; +export const Dead = 'Dead'; +export const FinalMode = 'FinalMode'; +export const GroupFirst = 'GroupFirst'; +export const GroupLast = 'GroupLast'; +export const GroupNext = 'GroupNext'; +export const GroupPrevious = 'GroupPrevious'; +export const ModeChange = 'ModeChange'; +export const NextCandidate = 'NextCandidate'; +export const NonConvert = 'NonConvert'; +export const PreviousCandidate = 'PreviousCandidate'; +export const Process = 'Process'; +export const SingleCandidate = 'SingleCandidate'; +export const HangulMode = 'HangulMode'; +export const HanjaMode = 'HanjaMode'; +export const JunjaMode = 'JunjaMode'; +export const Eisu = 'Eisu'; +export const Hankaku = 'Hankaku'; +export const Hiragana = 'Hiragana'; +export const HiraganaKatakana = 'HiraganaKatakana'; +export const KanaMode = 'KanaMode'; +export const KanjiMode = 'KanjiMode'; +export const Katakana = 'Katakana'; +export const Romaji = 'Romaji'; +export const Zenkaku = 'Zenkaku'; +export const ZenkakuHankaku = 'ZenkakuHankaku'; +export const F1 = 'F1'; +export const F2 = 'F2'; +export const F3 = 'F3'; +export const F4 = 'F4'; +export const F5 = 'F5'; +export const F6 = 'F6'; +export const F7 = 'F7'; +export const F8 = 'F8'; +export const F9 = 'F9'; +export const F10 = 'F10'; +export const F11 = 'F11'; +export const F12 = 'F12'; +export const Soft1 = 'Soft1'; +export const Soft2 = 'Soft2'; +export const Soft3 = 'Soft3'; +export const Soft4 = 'Soft4'; +export const ChannelDown = 'ChannelDown'; +export const ChannelUp = 'ChannelUp'; +export const Close = 'Close'; +export const MailForward = 'MailForward'; +export const MailReply = 'MailReply'; +export const MailSend = 'MailSend'; +export const MediaClose = 'MediaClose'; +export const MediaFastForward = 'MediaFastForward'; +export const MediaPause = 'MediaPause'; +export const MediaPlay = 'MediaPlay'; +export const MediaPlayPause = 'MediaPlayPause'; +export const MediaRecord = 'MediaRecord'; +export const MediaRewind = 'MediaRewind'; +export const MediaStop = 'MediaStop'; +export const MediaTrackNext = 'MediaTrackNext'; +export const MediaTrackPrevious = 'MediaTrackPrevious'; +export const New = 'New'; +export const Open = 'Open'; +export const Print = 'Print'; +export const Save = 'Save'; +export const SpellCheck = 'SpellCheck'; +export const Key11 = 'Key11'; +export const Key12 = 'Key12'; +export const AudioBalanceLeft = 'AudioBalanceLeft'; +export const AudioBalanceRight = 'AudioBalanceRight'; +export const AudioBassBoostDown = 'AudioBassBoostDown'; +export const AudioBassBoostToggle = 'AudioBassBoostToggle'; +export const AudioBassBoostUp = 'AudioBassBoostUp'; +export const AudioFaderFront = 'AudioFaderFront'; +export const AudioFaderRear = 'AudioFaderRear'; +export const AudioSurroundModeNext = 'AudioSurroundModeNext'; +export const AudioTrebleDown = 'AudioTrebleDown'; +export const AudioTrebleUp = 'AudioTrebleUp'; +export const AudioVolumeDown = 'AudioVolumeDown'; +export const AudioVolumeUp = 'AudioVolumeUp'; +export const AudioVolumeMute = 'AudioVolumeMute'; +export const MicrophoneToggle = 'MicrophoneToggle'; +export const MicrophoneVolumeDown = 'MicrophoneVolumeDown'; +export const MicrophoneVolumeUp = 'MicrophoneVolumeUp'; +export const MicrophoneVolumeMute = 'MicrophoneVolumeMute'; +export const SpeechCorrectionList = 'SpeechCorrectionList'; +export const SpeechInputToggle = 'SpeechInputToggle'; +export const LaunchApplication1 = 'LaunchApplication1'; +export const LaunchApplication2 = 'LaunchApplication2'; +export const LaunchCalendar = 'LaunchCalendar'; +export const LaunchContacts = 'LaunchContacts'; +export const LaunchMail = 'LaunchMail'; +export const LaunchMediaPlayer = 'LaunchMediaPlayer'; +export const LaunchMusicPlayer = 'LaunchMusicPlayer'; +export const LaunchPhone = 'LaunchPhone'; +export const LaunchScreenSaver = 'LaunchScreenSaver'; +export const LaunchSpreadsheet = 'LaunchSpreadsheet'; +export const LaunchWebBrowser = 'LaunchWebBrowser'; +export const LaunchWebCam = 'LaunchWebCam'; +export const LaunchWordProcessor = 'LaunchWordProcessor'; +export const BrowserBack = 'BrowserBack'; +export const BrowserFavorites = 'BrowserFavorites'; +export const BrowserForward = 'BrowserForward'; +export const BrowserHome = 'BrowserHome'; +export const BrowserRefresh = 'BrowserRefresh'; +export const BrowserSearch = 'BrowserSearch'; +export const BrowserStop = 'BrowserStop'; +export const AppSwitch = 'AppSwitch'; +export const Call = 'Call'; +export const Camera = 'Camera'; +export const CameraFocus = 'CameraFocus'; +export const EndCall = 'EndCall'; +export const GoBack = 'GoBack'; +export const GoHome = 'GoHome'; +export const HeadsetHook = 'HeadsetHook'; +export const LastNumberRedial = 'LastNumberRedial'; +export const Notification = 'Notification'; +export const MannerMode = 'MannerMode'; +export const VoiceDial = 'VoiceDial'; +export const TV = 'TV'; +export const TV3DMode = 'TV3DMode'; +export const TVAntennaCable = 'TVAntennaCable'; +export const TVAudioDescription = 'TVAudioDescription'; +export const TVAudioDescriptionMixDown = 'TVAudioDescriptionMixDown'; +export const TVAudioDescriptionMixUp = 'TVAudioDescriptionMixUp'; +export const TVContentsMenu = 'TVContentsMenu'; +export const TVDataService = 'TVDataService'; +export const TVInput = 'TVInput'; +export const TVInputComponent1 = 'TVInputComponent1'; +export const TVInputComponent2 = 'TVInputComponent2'; +export const TVInputComposite1 = 'TVInputComposite1'; +export const TVInputComposite2 = 'TVInputComposite2'; +export const TVInputHDMI1 = 'TVInputHDMI1'; +export const TVInputHDMI2 = 'TVInputHDMI2'; +export const TVInputHDMI3 = 'TVInputHDMI3'; +export const TVInputHDMI4 = 'TVInputHDMI4'; +export const TVInputVGA1 = 'TVInputVGA1'; +export const TVMediaContext = 'TVMediaContext'; +export const TVNetwork = 'TVNetwork'; +export const TVNumberEntry = 'TVNumberEntry'; +export const TVPower = 'TVPower'; +export const TVRadioService = 'TVRadioService'; +export const TVSatellite = 'TVSatellite'; +export const TVSatelliteBS = 'TVSatelliteBS'; +export const TVSatelliteCS = 'TVSatelliteCS'; +export const TVSatelliteToggle = 'TVSatelliteToggle'; +export const TVTerrestrialAnalog = 'TVTerrestrialAnalog'; +export const TVTerrestrialDigital = 'TVTerrestrialDigital'; +export const TVTimer = 'TVTimer'; +export const AVRInput = 'AVRInput'; +export const AVRPower = 'AVRPower'; +export const ColorF0Red = 'ColorF0Red'; +export const ColorF1Green = 'ColorF1Green'; +export const ColorF2Yellow = 'ColorF2Yellow'; +export const ColorF3Blue = 'ColorF3Blue'; +export const ColorF4Grey = 'ColorF4Grey'; +export const ColorF5Brown = 'ColorF5Brown'; +export const ClosedCaptionToggle = 'ClosedCaptionToggle'; +export const Dimmer = 'Dimmer'; +export const DisplaySwap = 'DisplaySwap'; +export const DVR = 'DVR'; +export const Exit = 'Exit'; +export const FavoriteClear0 = 'FavoriteClear0'; +export const FavoriteClear1 = 'FavoriteClear1'; +export const FavoriteClear2 = 'FavoriteClear2'; +export const FavoriteClear3 = 'FavoriteClear3'; +export const FavoriteRecall0 = 'FavoriteRecall0'; +export const FavoriteRecall1 = 'FavoriteRecall1'; +export const FavoriteRecall2 = 'FavoriteRecall2'; +export const FavoriteRecall3 = 'FavoriteRecall3'; +export const FavoriteStore0 = 'FavoriteStore0'; +export const FavoriteStore1 = 'FavoriteStore1'; +export const FavoriteStore2 = 'FavoriteStore2'; +export const FavoriteStore3 = 'FavoriteStore3'; +export const Guide = 'Guide'; +export const GuideNextDay = 'GuideNextDay'; +export const GuidePreviousDay = 'GuidePreviousDay'; +export const Info = 'Info'; +export const InstantReplay = 'InstantReplay'; +export const Link = 'Link'; +export const ListProgram = 'ListProgram'; +export const LiveContent = 'LiveContent'; +export const Lock = 'Lock'; +export const MediaApps = 'MediaApps'; +export const MediaAudioTrack = 'MediaAudioTrack'; +export const MediaLast = 'MediaLast'; +export const MediaSkipBackward = 'MediaSkipBackward'; +export const MediaSkipForward = 'MediaSkipForward'; +export const MediaStepBackward = 'MediaStepBackward'; +export const MediaStepForward = 'MediaStepForward'; +export const MediaTopMenu = 'MediaTopMenu'; +export const NavigateIn = 'NavigateIn'; +export const NavigateNext = 'NavigateNext'; +export const NavigateOut = 'NavigateOut'; +export const NavigatePrevious = 'NavigatePrevious'; +export const NextFavoriteChannel = 'NextFavoriteChannel'; +export const NextUserProfile = 'NextUserProfile'; +export const OnDemand = 'OnDemand'; +export const Pairing = 'Pairing'; +export const PinPDown = 'PinPDown'; +export const PinPMove = 'PinPMove'; +export const PinPToggle = 'PinPToggle'; +export const PinPUp = 'PinPUp'; +export const PlaySpeedDown = 'PlaySpeedDown'; +export const PlaySpeedReset = 'PlaySpeedReset'; +export const PlaySpeedUp = 'PlaySpeedUp'; +export const RandomToggle = 'RandomToggle'; +export const RcLowBattery = 'RcLowBattery'; +export const RecordSpeedNext = 'RecordSpeedNext'; +export const RfBypass = 'RfBypass'; +export const ScanChannelsToggle = 'ScanChannelsToggle'; +export const ScreenModeNext = 'ScreenModeNext'; +export const Settings = 'Settings'; +export const SplitScreenToggle = 'SplitScreenToggle'; +export const STBInput = 'STBInput'; +export const STBPower = 'STBPower'; +export const Subtitle = 'Subtitle'; +export const Teletext = 'Teletext'; +export const VideoModeNext = 'VideoModeNext'; +export const Wink = 'Wink'; +export const ZoomToggle = 'ZoomToggle'; +export const MediaNextTrack = 'MediaNextTrack'; +export const MediaPreviousTrack = 'MediaPreviousTrack'; +export const Unidentified = 'Unidentified';