Enum keyboard_types::Key
[−]
[src]
pub enum Key {
Character(String),
Unidentified,
Alt,
AltGraph,
CapsLock,
Control,
Fn,
FnLock,
Meta,
NumLock,
ScrollLock,
Shift,
Symbol,
SymbolLock,
Hyper,
Super,
Enter,
Tab,
ArrowDown,
ArrowLeft,
ArrowRight,
ArrowUp,
End,
Home,
PageDown,
PageUp,
Backspace,
Clear,
Copy,
CrSel,
Cut,
Delete,
EraseEof,
ExSel,
Insert,
Paste,
Redo,
Undo,
Accept,
Again,
Attn,
Cancel,
ContextMenu,
Escape,
Execute,
Find,
Help,
Pause,
Play,
Props,
Select,
ZoomIn,
ZoomOut,
BrightnessDown,
BrightnessUp,
Eject,
LogOff,
Power,
PowerOff,
PrintScreen,
Hibernate,
Standby,
WakeUp,
AllCandidates,
Alphanumeric,
CodeInput,
Compose,
Convert,
Dead,
FinalMode,
GroupFirst,
GroupLast,
GroupNext,
GroupPrevious,
ModeChange,
NextCandidate,
NonConvert,
PreviousCandidate,
Process,
SingleCandidate,
HangulMode,
HanjaMode,
JunjaMode,
Eisu,
Hankaku,
Hiragana,
HiraganaKatakana,
KanaMode,
KanjiMode,
Katakana,
Romaji,
Zenkaku,
ZenkakuHankaku,
F1,
F2,
F3,
F4,
F5,
F6,
F7,
F8,
F9,
F10,
F11,
F12,
Soft1,
Soft2,
Soft3,
Soft4,
ChannelDown,
ChannelUp,
Close,
MailForward,
MailReply,
MailSend,
MediaClose,
MediaFastForward,
MediaPause,
MediaPlay,
MediaPlayPause,
MediaRecord,
MediaRewind,
MediaStop,
MediaTrackNext,
MediaTrackPrevious,
New,
Open,
Print,
Save,
SpellCheck,
Key11,
Key12,
AudioBalanceLeft,
AudioBalanceRight,
AudioBassBoostDown,
AudioBassBoostToggle,
AudioBassBoostUp,
AudioFaderFront,
AudioFaderRear,
AudioSurroundModeNext,
AudioTrebleDown,
AudioTrebleUp,
AudioVolumeDown,
AudioVolumeUp,
AudioVolumeMute,
MicrophoneToggle,
MicrophoneVolumeDown,
MicrophoneVolumeUp,
MicrophoneVolumeMute,
SpeechCorrectionList,
SpeechInputToggle,
LaunchApplication1,
LaunchApplication2,
LaunchCalendar,
LaunchContacts,
LaunchMail,
LaunchMediaPlayer,
LaunchMusicPlayer,
LaunchPhone,
LaunchScreenSaver,
LaunchSpreadsheet,
LaunchWebBrowser,
LaunchWebCam,
LaunchWordProcessor,
BrowserBack,
BrowserFavorites,
BrowserForward,
BrowserHome,
BrowserRefresh,
BrowserSearch,
BrowserStop,
AppSwitch,
Call,
Camera,
CameraFocus,
EndCall,
GoBack,
GoHome,
HeadsetHook,
LastNumberRedial,
Notification,
MannerMode,
VoiceDial,
TV,
TV3DMode,
TVAntennaCable,
TVAudioDescription,
TVAudioDescriptionMixDown,
TVAudioDescriptionMixUp,
TVContentsMenu,
TVDataService,
TVInput,
TVInputComponent1,
TVInputComponent2,
TVInputComposite1,
TVInputComposite2,
TVInputHDMI1,
TVInputHDMI2,
TVInputHDMI3,
TVInputHDMI4,
TVInputVGA1,
TVMediaContext,
TVNetwork,
TVNumberEntry,
TVPower,
TVRadioService,
TVSatellite,
TVSatelliteBS,
TVSatelliteCS,
TVSatelliteToggle,
TVTerrestrialAnalog,
TVTerrestrialDigital,
TVTimer,
AVRInput,
AVRPower,
ColorF0Red,
ColorF1Green,
ColorF2Yellow,
ColorF3Blue,
ColorF4Grey,
ColorF5Brown,
ClosedCaptionToggle,
Dimmer,
DisplaySwap,
DVR,
Exit,
FavoriteClear0,
FavoriteClear1,
FavoriteClear2,
FavoriteClear3,
FavoriteRecall0,
FavoriteRecall1,
FavoriteRecall2,
FavoriteRecall3,
FavoriteStore0,
FavoriteStore1,
FavoriteStore2,
FavoriteStore3,
Guide,
GuideNextDay,
GuidePreviousDay,
Info,
InstantReplay,
Link,
ListProgram,
LiveContent,
Lock,
MediaApps,
MediaAudioTrack,
MediaLast,
MediaSkipBackward,
MediaSkipForward,
MediaStepBackward,
MediaStepForward,
MediaTopMenu,
NavigateIn,
NavigateNext,
NavigateOut,
NavigatePrevious,
NextFavoriteChannel,
NextUserProfile,
OnDemand,
Pairing,
PinPDown,
PinPMove,
PinPToggle,
PinPUp,
PlaySpeedDown,
PlaySpeedReset,
PlaySpeedUp,
RandomToggle,
RcLowBattery,
RecordSpeedNext,
RfBypass,
ScanChannelsToggle,
ScreenModeNext,
Settings,
SplitScreenToggle,
STBInput,
STBPower,
Subtitle,
Teletext,
VideoModeNext,
Wink,
ZoomToggle,
// some variants omitted
}Key represents the meaning of a keypress.
Specification: https://www.w3.org/TR/2017/CR-uievents-key-20170601/
Variants
Character(String)A key string that corresponds to the character typed by the user, taking into account the user’s current locale setting, modifier state, and any system-level keyboard mapping overrides that are in effect.
UnidentifiedThis key value is used when an implementation is unable to identify another key value, due to either hardware, platform, or software constraints.
AltThe Alt (Alternative) key.
This key enables the alternate modifier function for interpreting concurrent or subsequent keyboard input.
This key value is also used for the Apple Option key.
AltGraphThe Alternate Graphics (AltGr or AltGraph) key.
This key is used enable the ISO Level 3 shift modifier (the standard Shift key is the level 2 modifier).
See [ISO9995-1].
CapsLockThe Caps Lock (Capital) key.
Toggle capital character lock function for interpreting subsequent keyboard input event.
ControlThe Control or Ctrl key, to enable control modifier function for interpreting concurrent or subsequent keyboard input.
FnThe Function switch Fn key.
Activating this key simultaneously with another key changes that key’s value to an alternate character or function.
This key is often handled directly in the keyboard hardware and does not usually generate key events.
FnLockThe Function-Lock (FnLock or F-Lock) key.
Activating this key switches the mode of the keyboard to changes some keys' values to an alternate character or function.
This key is often handled directly in the keyboard hardware and does not usually generate key events.
MetaThe Meta key, to enable meta modifier function for interpreting concurrent or subsequent keyboard input.
This key value is used for the Windows Logo
key and the Apple Command or ⌘ key.
NumLockThe NumLock or Number Lock key, to toggle numpad mode function for interpreting subsequent keyboard input.
ScrollLockThe Scroll Lock key, to toggle between scrolling and cursor movement modes.
ShiftThe Shift key, to enable shift modifier function for interpreting concurrent or subsequent keyboard input.
SymbolThe Symbol modifier key (used on some virtual keyboards).
SymbolLockThe Symbol Lock key.
HyperThe Hyper key.
SuperThe Super key.
EnterThe Enter or ↵ key, to activate current selection or accept current input.
This key value is also used for the Return (Macintosh numpad) key.
This key value is also used for the Android KEYCODE_DPAD_CENTER.
TabThe Horizontal Tabulation Tab key.
ArrowDownThe down arrow key, to navigate or traverse downward. (KEYCODE_DPAD_DOWN)
ArrowLeftThe left arrow key, to navigate or traverse leftward. (KEYCODE_DPAD_LEFT)
ArrowRightThe right arrow key, to navigate or traverse rightward. (KEYCODE_DPAD_RIGHT)
ArrowUpThe up arrow key, to navigate or traverse upward. (KEYCODE_DPAD_UP)
EndThe End key, used with keyboard entry to go to the end of content (KEYCODE_MOVE_END).
HomeThe Home key, used with keyboard entry, to go to start of content (KEYCODE_MOVE_HOME).
For the mobile phone Home key (which goes to the phone’s main screen), use "GoHome".
PageDownThe Page Down key, to scroll down or display next page of content.
PageUpThe Page Up key, to scroll up or display previous page of content.
BackspaceThe Backspace key. This key value is also used for the key labeled Delete on MacOS keyboards.
ClearRemove the currently selected input.
CopyCopy the current selection. (APPCOMMAND_COPY)
CrSelThe Cursor Select (Crsel) key.
CutCut the current selection. (APPCOMMAND_CUT)
DeleteThe Delete (Del) Key.
This key value is also used for the key labeled Delete on MacOS keyboards when modified by the Fn key.
EraseEofThe Erase to End of Field key. This key deletes all characters from the current cursor position to the end of the current field.
ExSelThe Extend Selection (Exsel) key.
InsertThe Insert (Ins) key, to toggle between text modes for insertion or overtyping. (KEYCODE_INSERT)
PasteThe Paste key. (APPCOMMAND_PASTE)
RedoRedo the last action. (APPCOMMAND_REDO)
UndoUndo the last action. (APPCOMMAND_UNDO)
AcceptThe Accept (Commit, OK) key. Accept current option or input method sequence conversion.
AgainThe Again key, to redo or repeat an action.
AttnThe Attention (Attn) key.
CancelThe Cancel key.
ContextMenuShow the application’s context menu.
This key is commonly found between the right Meta key and the right Control key.
EscapeThe Esc key. This key was originally used to initiate an escape sequence, but is
now more generally used to exit or "escape" the current context, such as closing a dialog
or exiting full screen mode.
ExecuteThe Execute key.
FindOpen the Find dialog. (APPCOMMAND_FIND)
HelpOpen a help dialog or toggle display of help information. (, APPCOMMAND_HELP)KEYCODE_HELP
PausePause the current state or application (as appropriate).
Do not use this value for the Pause button on media controllers. Use "MediaPause" instead.
PlayPlay or resume the current state or application (as appropriate).
Do not use this value for the Play button on media controllers. Use "MediaPlay" instead.
PropsThe properties (Props) key.
SelectThe Select key.
ZoomInThe ZoomIn key. (KEYCODE_ZOOM_IN)
ZoomOutThe ZoomOut key. (KEYCODE_ZOOM_OUT)
BrightnessDownThe Brightness Down key. Typically controls the display brightness. (KEYCODE_BRIGHTNESS_DOWN)
BrightnessUpThe Brightness Up key. Typically controls the display brightness. (KEYCODE_BRIGHTNESS_UP)
EjectToggle removable media to eject (open) and insert (close) state. (KEYCODE_MEDIA_EJECT)
LogOffThe LogOff key.
PowerToggle power state. (KEYCODE_POWER)
Note: Some devices might not expose this key to the operating environment.
PowerOffThe PowerOff key. Sometime called PowerDown.
PrintScreenThe Print Screen or SnapShot key, to initiate print-screen function.
HibernateThe Hibernate key. This key saves the current state of the computer to disk so that it can be restored. The computer will then shutdown.
StandbyThe Standby key.
This key turns off the display and places the computer into a low-power mode without completely shutting down.
It is sometimes labelled Suspend or Sleep key. ()KEYCODE_SLEEP
WakeUpThe WakeUp key. (KEYCODE_WAKEUP)
AllCandidatesThe All Candidates key, to initate the multi-candidate mode.
AlphanumericThe Alphanumeric key.
CodeInputThe Code Input key, to initiate the Code Input mode to allow characters to be entered by their code points.
ComposeThe Compose key, also known as Multi_key on the X Window System. This key acts in a manner similar to a dead key, triggering a mode where subsequent key presses are combined to produce a different character.
ConvertThe Convert key, to convert the current input method sequence.
DeadA dead key combining key. It may be any combining key from any keyboard layout. For example, on a
PC/AT French keyboard, using a French mapping and without any modifier activiated, this is the key value U+0302 COMBINING CIRCUMFLEX ACCENT. In another layout this might be a different unicode combining key.
For applications that need to differentiate between specific combining characters, the associated compositionupdate event’s data attribute provides the specific key value.
FinalModeThe Final Mode Final key used on some Asian keyboards, to enable the final mode for IMEs.
GroupFirstSwitch to the first character group. (ISO/IEC 9995)
GroupLastSwitch to the last character group. (ISO/IEC 9995)
GroupNextSwitch to the next character group. (ISO/IEC 9995)
GroupPreviousSwitch to the previous character group. (ISO/IEC 9995)
ModeChangeThe Mode Change key, to toggle between or cycle through input modes of IMEs.
NextCandidateThe Next Candidate function key.
NonConvertThe NonConvert ("Don’t Convert") key, to accept current input method sequence without conversion in IMEs.
PreviousCandidateThe Previous Candidate function key.
ProcessThe Process key.
SingleCandidateThe Single Candidate function key.
HangulModeThe Hangul (Korean characters) Mode key, to toggle between Hangul and English modes.
HanjaModeThe Hanja (Korean characters) Mode key.
JunjaModeThe Junja (Korean characters) Mode key.
EisuThe Eisu key. This key may close the IME, but its purpose
is defined by the current IME. (KEYCODE_EISU)
HankakuThe (Half-Width) Characters key.
HiraganaThe Hiragana (Japanese Kana characters) key.
HiraganaKatakanaThe Hiragana/Katakana toggle key. (KEYCODE_KATAKANA_HIRAGANA)
KanaModeThe Kana Mode (Kana Lock) key. This key is used to enter hiragana mode (typically from romaji mode).
KanjiModeThe Kanji (Japanese name for ideographic characters of Chinese origin) Mode key.
This key is typically used to switch to a hiragana keyboard for
the purpose of converting input into kanji. (KEYCODE_KANA)
KatakanaThe Katakana (Japanese Kana characters) key.
RomajiThe Roman characters function key.
ZenkakuThe Zenkaku (Full-Width) Characters key.
ZenkakuHankakuThe Zenkaku/Hankaku (full-width/half-width) toggle key. (KEYCODE_ZENKAKU_HANKAKU)
F1The F1 key, a general purpose function key, as index 1.
F2The F2 key, a general purpose function key, as index 2.
F3The F3 key, a general purpose function key, as index 3.
F4The F4 key, a general purpose function key, as index 4.
F5The F5 key, a general purpose function key, as index 5.
F6The F6 key, a general purpose function key, as index 6.
F7The F7 key, a general purpose function key, as index 7.
F8The F8 key, a general purpose function key, as index 8.
F9The F9 key, a general purpose function key, as index 9.
F10The F10 key, a general purpose function key, as index 10.
F11The F11 key, a general purpose function key, as index 11.
F12The F12 key, a general purpose function key, as index 12.
Soft1General purpose virtual function key, as index 1.
Soft2General purpose virtual function key, as index 2.
Soft3General purpose virtual function key, as index 3.
Soft4General purpose virtual function key, as index 4.
ChannelDownSelect next (numerically or logically) lower channel. (, APPCOMMAND_MEDIA_CHANNEL_DOWN)KEYCODE_CHANNEL_DOWN
ChannelUpSelect next (numerically or logically) higher channel. (, APPCOMMAND_MEDIA_CHANNEL_UP)KEYCODE_CHANNEL_UP
CloseClose the current document or message (Note: This doesn’t close the application). (APPCOMMAND_CLOSE)
MailForwardOpen an editor to forward the current message. (APPCOMMAND_FORWARD_MAIL)
MailReplyOpen an editor to reply to the current message. (APPCOMMAND_REPLY_TO_MAIL)
MailSendSend the current message. (APPCOMMAND_SEND_MAIL)
MediaCloseClose the current media, for example to close a CD or DVD tray. (KEYCODE_MEDIA_CLOSE)
MediaFastForwardInitiate or continue forward playback at faster than normal speed, or increase speed if already fast forwarding. (, APPCOMMAND_MEDIA_FAST_FORWARD)KEYCODE_MEDIA_FAST_FORWARD
MediaPausePause the currently playing media. (, APPCOMMAND_MEDIA_PAUSE)
KEYCODE_MEDIA_PAUSE
Media controller devices should use this value rather than "Pause" for their pause keys.
MediaPlayInitiate or continue media playback at normal speed, if not currently playing at normal speed. (, APPCOMMAND_MEDIA_PLAY)KEYCODE_MEDIA_PLAY
MediaPlayPauseToggle media between play and pause states. (, APPCOMMAND_MEDIA_PLAY_PAUSE)KEYCODE_MEDIA_PLAY_PAUSE
MediaRecordInitiate or resume recording of currently selected media. (, APPCOMMAND_MEDIA_RECORD)KEYCODE_MEDIA_RECORD
MediaRewindInitiate or continue reverse playback at faster than normal speed, or increase speed if already rewinding. (, APPCOMMAND_MEDIA_REWIND)KEYCODE_MEDIA_REWIND
MediaStopStop media playing, pausing, forwarding, rewinding, or recording, if not already stopped. (, APPCOMMAND_MEDIA_STOP)KEYCODE_MEDIA_STOP
MediaTrackNextSeek to next media or program track. (, APPCOMMAND_MEDIA_NEXTTRACK)KEYCODE_MEDIA_NEXT
MediaTrackPreviousSeek to previous media or program track. (, APPCOMMAND_MEDIA_PREVIOUSTRACK)KEYCODE_MEDIA_PREVIOUS
NewOpen a new document or message. (APPCOMMAND_NEW)
OpenOpen an existing document or message. (APPCOMMAND_OPEN)
PrintPrint the current document or message. (APPCOMMAND_PRINT)
SaveSave the current document or message. (APPCOMMAND_SAVE)
SpellCheckSpellcheck the current document or selection. (APPCOMMAND_SPELL_CHECK)
Key11The 11 key found on media numpads that
have buttons from 1 ... 12.
Key12The 12 key found on media numpads that
have buttons from 1 ... 12.
AudioBalanceLeftAdjust audio balance leftward. (VK_AUDIO_BALANCE_LEFT)
AudioBalanceRightAdjust audio balance rightward. (VK_AUDIO_BALANCE_RIGHT)
AudioBassBoostDownDecrease audio bass boost or cycle down through bass boost states. (, APPCOMMAND_BASS_DOWN)VK_BASS_BOOST_DOWN
AudioBassBoostToggleToggle bass boost on/off. (APPCOMMAND_BASS_BOOST)
AudioBassBoostUpIncrease audio bass boost or cycle up through bass boost states. (, APPCOMMAND_BASS_UP)VK_BASS_BOOST_UP
AudioFaderFrontAdjust audio fader towards front. (VK_FADER_FRONT)
AudioFaderRearAdjust audio fader towards rear. (VK_FADER_REAR)
AudioSurroundModeNextAdvance surround audio mode to next available mode. (VK_SURROUND_MODE_NEXT)
AudioTrebleDownDecrease treble. (APPCOMMAND_TREBLE_DOWN)
AudioTrebleUpIncrease treble. (APPCOMMAND_TREBLE_UP)
AudioVolumeDownDecrease audio volume. (, APPCOMMAND_VOLUME_DOWN)KEYCODE_VOLUME_DOWN
AudioVolumeUpIncrease audio volume. (, APPCOMMAND_VOLUME_UP)KEYCODE_VOLUME_UP
AudioVolumeMuteToggle between muted state and prior volume level. (, APPCOMMAND_VOLUME_MUTE)KEYCODE_VOLUME_MUTE
MicrophoneToggleToggle the microphone on/off. (APPCOMMAND_MIC_ON_OFF_TOGGLE)
MicrophoneVolumeDownDecrease microphone volume. (APPCOMMAND_MICROPHONE_VOLUME_DOWN)
MicrophoneVolumeUpIncrease microphone volume. (APPCOMMAND_MICROPHONE_VOLUME_UP)
MicrophoneVolumeMuteMute the microphone. (, APPCOMMAND_MICROPHONE_VOLUME_MUTE)KEYCODE_MUTE
SpeechCorrectionListShow correction list when a word is incorrectly identified. (APPCOMMAND_CORRECTION_LIST)
SpeechInputToggleToggle between dictation mode and command/control mode. (APPCOMMAND_DICTATE_OR_COMMAND_CONTROL_TOGGLE)
LaunchApplication1The first generic "LaunchApplication" key. This is commonly associated with launching "My Computer", and may have a computer symbol on the key. (APPCOMMAND_LAUNCH_APP1)
LaunchApplication2The second generic "LaunchApplication" key. This is commonly associated with launching "Calculator", and may have a calculator symbol on the key. (, APPCOMMAND_LAUNCH_APP2)KEYCODE_CALCULATOR
LaunchCalendarThe "Calendar" key. (KEYCODE_CALENDAR)
LaunchContactsThe "Contacts" key. (KEYCODE_CONTACTS)
LaunchMailThe "Mail" key. (APPCOMMAND_LAUNCH_MAIL)
LaunchMediaPlayerThe "Media Player" key. (APPCOMMAND_LAUNCH_MEDIA_SELECT)
LaunchMusicPlayerThe "Music Player" key.
LaunchPhoneThe "Phone" key.
LaunchScreenSaverThe "Screen Saver" key.
LaunchSpreadsheetThe "Spreadsheet" key.
LaunchWebBrowserThe "Web Browser" key.
LaunchWebCamThe "WebCam" key.
LaunchWordProcessorThe "Word Processor" key.
BrowserBackNavigate to previous content or page in current history. (APPCOMMAND_BROWSER_BACKWARD)
BrowserFavoritesOpen the list of browser favorites. (APPCOMMAND_BROWSER_FAVORITES)
BrowserForwardNavigate to next content or page in current history. (APPCOMMAND_BROWSER_FORWARD)
BrowserHomeGo to the user’s preferred home page. (APPCOMMAND_BROWSER_HOME)
BrowserRefreshRefresh the current page or content. (APPCOMMAND_BROWSER_REFRESH)
BrowserSearchCall up the user’s preferred search page. (APPCOMMAND_BROWSER_SEARCH)
BrowserStopStop loading the current page or content. (APPCOMMAND_BROWSER_STOP)
AppSwitchThe Application switch key, which provides a list of recent apps to switch between. (KEYCODE_APP_SWITCH)
CallThe Call key. (KEYCODE_CALL)
CameraThe Camera key. (KEYCODE_CAMERA)
CameraFocusThe Camera focus key. (KEYCODE_FOCUS)
EndCallThe End Call key. (KEYCODE_ENDCALL)
GoBackThe Back key. (KEYCODE_BACK)
GoHomeThe Home key, which goes to the phone’s main screen. (KEYCODE_HOME)
HeadsetHookThe Headset Hook key. (KEYCODE_HEADSETHOOK)
LastNumberRedialThe Last Number Redial key.
NotificationThe Notification key. (KEYCODE_NOTIFICATION)
MannerModeToggle between manner mode state: silent, vibrate, ring, ... (KEYCODE_MANNER_MODE)
VoiceDialThe Voice Dial key.
TVSwitch to viewing TV. (KEYCODE_TV)
TV3DModeTV 3D Mode. (KEYCODE_3D_MODE)
TVAntennaCableToggle between antenna and cable input. (KEYCODE_TV_ANTENNA_CABLE)
TVAudioDescriptionAudio description. (KEYCODE_TV_AUDIO_DESCRIPTION)
TVAudioDescriptionMixDownAudio description mixing volume down. (KEYCODE_TV_AUDIO_DESCRIPTION_MIX_DOWN)
TVAudioDescriptionMixUpAudio description mixing volume up. (KEYCODE_TV_AUDIO_DESCRIPTION_MIX_UP)
TVContentsMenuContents menu. (KEYCODE_TV_CONTENTS_MENU)
TVDataServiceContents menu. (KEYCODE_TV_DATA_SERVICE)
TVInputSwitch the input mode on an external TV. (KEYCODE_TV_INPUT)
TVInputComponent1Switch to component input #1. (KEYCODE_TV_INPUT_COMPONENT_1)
TVInputComponent2Switch to component input #2. (KEYCODE_TV_INPUT_COMPONENT_2)
TVInputComposite1Switch to composite input #1. (KEYCODE_TV_INPUT_COMPOSITE_1)
TVInputComposite2Switch to composite input #2. (KEYCODE_TV_INPUT_COMPOSITE_2)
TVInputHDMI1Switch to HDMI input #1. (KEYCODE_TV_INPUT_HDMI_1)
TVInputHDMI2Switch to HDMI input #2. (KEYCODE_TV_INPUT_HDMI_2)
TVInputHDMI3Switch to HDMI input #3. (KEYCODE_TV_INPUT_HDMI_3)
TVInputHDMI4Switch to HDMI input #4. (KEYCODE_TV_INPUT_HDMI_4)
TVInputVGA1Switch to VGA input #1. (KEYCODE_TV_INPUT_VGA_1)
TVMediaContextMedia context menu. (KEYCODE_TV_MEDIA_CONTEXT_MENU)
TVNetworkToggle network. (KEYCODE_TV_NETWORK)
TVNumberEntryNumber entry. (KEYCODE_TV_NUMBER_ENTRY)
TVPowerToggle the power on an external TV. (KEYCODE_TV_POWER)
TVRadioServiceRadio. (KEYCODE_TV_RADIO_SERVICE)
TVSatelliteSatellite. (KEYCODE_TV_SATELLITE)
TVSatelliteBSBroadcast Satellite. (KEYCODE_TV_SATELLITE_BS)
TVSatelliteCSCommunication Satellite. (KEYCODE_TV_SATELLITE_CS)
TVSatelliteToggleToggle between available satellites. (KEYCODE_TV_SATELLITE_SERVICE)
TVTerrestrialAnalogAnalog Terrestrial. (KEYCODE_TV_TERRESTRIAL_ANALOG)
TVTerrestrialDigitalDigital Terrestrial. (KEYCODE_TV_TERRESTRIAL_DIGITAL)
TVTimerTimer programming. (KEYCODE_TV_TIMER_PROGRAMMING)
AVRInputSwitch the input mode on an external AVR (audio/video receiver). (KEYCODE_AVR_INPUT)
AVRPowerToggle the power on an external AVR (audio/video receiver). (KEYCODE_AVR_POWER)
ColorF0RedGeneral purpose color-coded media function key, as index 0 (red). (, VK_COLORED_KEY_0)KEYCODE_PROG_RED
ColorF1GreenGeneral purpose color-coded media function key, as index 1 (green). (, VK_COLORED_KEY_1)KEYCODE_PROG_GREEN
ColorF2YellowGeneral purpose color-coded media function key, as index 2 (yellow). (, VK_COLORED_KEY_2)KEYCODE_PROG_YELLOW
ColorF3BlueGeneral purpose color-coded media function key, as index 3 (blue). (, VK_COLORED_KEY_3)KEYCODE_PROG_BLUE
ColorF4GreyGeneral purpose color-coded media function key, as index 4 (grey). (VK_COLORED_KEY_4)
ColorF5BrownGeneral purpose color-coded media function key, as index 5 (brown). (VK_COLORED_KEY_5)
ClosedCaptionToggleToggle the display of Closed Captions. (, VK_CC)KEYCODE_CAPTIONS
DimmerAdjust brightness of device, by toggling between or cycling through states. (VK_DIMMER)
DisplaySwapSwap video sources. (VK_DISPLAY_SWAP)
DVRSelect Digital Video Rrecorder. (KEYCODE_DVR)
ExitExit the current application. (VK_EXIT)
FavoriteClear0Clear program or content stored as favorite 0. (VK_CLEAR_FAVORITE_0)
FavoriteClear1Clear program or content stored as favorite 1. (VK_CLEAR_FAVORITE_1)
FavoriteClear2Clear program or content stored as favorite 2. (VK_CLEAR_FAVORITE_2)
FavoriteClear3Clear program or content stored as favorite 3. (VK_CLEAR_FAVORITE_3)
FavoriteRecall0Select (recall) program or content stored as favorite 0. (VK_RECALL_FAVORITE_0)
FavoriteRecall1Select (recall) program or content stored as favorite 1. (VK_RECALL_FAVORITE_1)
FavoriteRecall2Select (recall) program or content stored as favorite 2. (VK_RECALL_FAVORITE_2)
FavoriteRecall3Select (recall) program or content stored as favorite 3. (VK_RECALL_FAVORITE_3)
FavoriteStore0Store current program or content as favorite 0. (VK_STORE_FAVORITE_0)
FavoriteStore1Store current program or content as favorite 1. (VK_STORE_FAVORITE_1)
FavoriteStore2Store current program or content as favorite 2. (VK_STORE_FAVORITE_2)
FavoriteStore3Store current program or content as favorite 3. (VK_STORE_FAVORITE_3)
GuideToggle display of program or content guide. (, VK_GUIDE)KEYCODE_GUIDE
GuideNextDayIf guide is active and displayed, then display next day’s content. (VK_NEXT_DAY)
GuidePreviousDayIf guide is active and displayed, then display previous day’s content. (VK_PREV_DAY)
InfoToggle display of information about currently selected context or media. (, VK_INFO)KEYCODE_INFO
InstantReplayToggle instant replay. (VK_INSTANT_REPLAY)
LinkLaunch linked content, if available and appropriate. (VK_LINK)
ListProgramList the current program. (VK_LIST)
LiveContentToggle display listing of currently available live content or programs. (VK_LIVE)
LockLock or unlock current content or program. (VK_LOCK)
MediaAppsShow a list of media applications: audio/video players and image viewers. (VK_APPS)
Do not confuse this key value with the Windows' / VK_APPS key, which is encoded as VK_CONTEXT_MENU"ContextMenu".
MediaAudioTrackAudio track key. (KEYCODE_MEDIA_AUDIO_TRACK)
MediaLastSelect previously selected channel or media. (, VK_LAST)KEYCODE_LAST_CHANNEL
MediaSkipBackwardSkip backward to next content or program. (KEYCODE_MEDIA_SKIP_BACKWARD)
MediaSkipForwardSkip forward to next content or program. (, VK_SKIP)KEYCODE_MEDIA_SKIP_FORWARD
MediaStepBackwardStep backward to next content or program. (KEYCODE_MEDIA_STEP_BACKWARD)
MediaStepForwardStep forward to next content or program. (KEYCODE_MEDIA_STEP_FORWARD)
MediaTopMenuMedia top menu. (KEYCODE_MEDIA_TOP_MENU)
Navigate in. (KEYCODE_NAVIGATE_IN)
Navigate to next key. (KEYCODE_NAVIGATE_NEXT)
Navigate out. (KEYCODE_NAVIGATE_OUT)
Navigate to previous key. (KEYCODE_NAVIGATE_PREVIOUS)
NextFavoriteChannelCycle to next favorite channel (in favorites list). (VK_NEXT_FAVORITE_CHANNEL)
NextUserProfileCycle to next user profile (if there are multiple user profiles). (VK_USER)
OnDemandAccess on-demand content or programs. (VK_ON_DEMAND)
PairingPairing key to pair devices. (KEYCODE_PAIRING)
PinPDownMove picture-in-picture window down. (VK_PINP_DOWN)
PinPMoveMove picture-in-picture window. (VK_PINP_MOVE)
PinPToggleToggle display of picture-in-picture window. (VK_PINP_TOGGLE)
PinPUpMove picture-in-picture window up. (VK_PINP_UP)
PlaySpeedDownDecrease media playback speed. (VK_PLAY_SPEED_DOWN)
PlaySpeedResetReset playback to normal speed. (VK_PLAY_SPEED_RESET)
PlaySpeedUpIncrease media playback speed. (VK_PLAY_SPEED_UP)
RandomToggleToggle random media or content shuffle mode. (VK_RANDOM_TOGGLE)
RcLowBatteryNot a physical key, but this key code is sent when the remote control battery is low. (VK_RC_LOW_BATTERY)
RecordSpeedNextToggle or cycle between media recording speeds. (VK_RECORD_SPEED_NEXT)
RfBypassToggle RF (radio frequency) input bypass mode (pass RF input directly to the RF output). (VK_RF_BYPASS)
ScanChannelsToggleToggle scan channels mode. (VK_SCAN_CHANNELS_TOGGLE)
ScreenModeNextAdvance display screen mode to next available mode. (VK_SCREEN_MODE_NEXT)
SettingsToggle display of device settings screen. (, VK_SETTINGS)KEYCODE_SETTINGS
SplitScreenToggleToggle split screen mode. (VK_SPLIT_SCREEN_TOGGLE)
STBInputSwitch the input mode on an external STB (set top box). (KEYCODE_STB_INPUT)
STBPowerToggle the power on an external STB (set top box). (KEYCODE_STB_POWER)
SubtitleToggle display of subtitles, if available. (VK_SUBTITLE)
TeletextToggle display of teletext, if available (, VK_TELETEXT).KEYCODE_TV_TELETEXT
VideoModeNextAdvance video mode to next available mode. (VK_VIDEO_MODE_NEXT)
WinkCause device to identify itself in some manner, e.g., audibly or visibly. (VK_WINK)
ZoomToggleToggle between full-screen and scaled content, or alter magnification level. (, VK_ZOOM)KEYCODE_TV_ZOOM_MODE
Trait Implementations
impl Clone for Key[src]
fn clone(&self) -> Key
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more
impl Debug for Key[src]
impl Eq for Key[src]
impl PartialEq for Key[src]
fn eq(&self, __arg_0: &Key) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Key) -> bool
This method tests for !=.