Enum tuix_internal::Key [−]
pub enum Key {
Show 285 variants
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
}
Expand description
Key represents the meaning of a keypress.
Specification: https://w3c.github.io/uievents-key/
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.
Tuple Fields of Character
0: String
This key value is used when an implementation is unable to identify another key value, due to either hardware, platform, or software constraints.
The 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.
The 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].
The Caps Lock
(Capital) key.
Toggle capital character lock function for interpreting subsequent keyboard input event.
The Control
or Ctrl
key, to enable control modifier function for interpreting concurrent or subsequent keyboard input.
The 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.
The 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.
The 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.
The NumLock
or Number Lock key, to toggle numpad mode function for interpreting subsequent keyboard input.
The Scroll Lock
key, to toggle between scrolling and cursor movement modes.
The Shift
key, to enable shift modifier function for interpreting concurrent or subsequent keyboard input.
The Symbol modifier key (used on some virtual keyboards).
The Symbol Lock key.
The Hyper
key.
The Super
key.
The 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
.
The Horizontal Tabulation Tab
key.
The down arrow key, to navigate or traverse downward. (KEYCODE_DPAD_DOWN
)
The left arrow key, to navigate or traverse leftward. (KEYCODE_DPAD_LEFT
)
The right arrow key, to navigate or traverse rightward. (KEYCODE_DPAD_RIGHT
)
The up arrow key, to navigate or traverse upward. (KEYCODE_DPAD_UP
)
The End key, used with keyboard entry to go to the end of content (KEYCODE_MOVE_END
).
The 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”
.
The Page Down key, to scroll down or display next page of content.
The Page Up key, to scroll up or display previous page of content.
The Backspace key. This key value is also used for the key labeled Delete
on MacOS keyboards.
Remove the currently selected input.
Copy the current selection. (APPCOMMAND_COPY
)
The Cursor Select (Crsel) key.
Cut the current selection. (APPCOMMAND_CUT
)
The Delete (Del) Key.
This key value is also used for the key labeled Delete
on MacOS keyboards when modified by the Fn
key.
The Erase to End of Field key. This key deletes all characters from the current cursor position to the end of the current field.
The Extend Selection (Exsel) key.
The Insert (Ins) key, to toggle between text modes for insertion or overtyping. (KEYCODE_INSERT
)
The Paste key. (APPCOMMAND_PASTE
)
Redo the last action. (APPCOMMAND_REDO
)
Undo the last action. (APPCOMMAND_UNDO
)
The Accept (Commit, OK) key. Accept current option or input method sequence conversion.
The Again key, to redo or repeat an action.
The Attention (Attn) key.
The Cancel key.
Show the application’s context menu.
This key is commonly found between the right Meta
key and the right Control
key.
The 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.
The Execute key.
Open the Find dialog. (APPCOMMAND_FIND
)
Open a help dialog or toggle display of help information. (
, APPCOMMAND_HELP
)KEYCODE_HELP
Pause the current state or application (as appropriate).
Do not use this value for the Pause
button on media controllers. Use "MediaPause"
instead.
Play or resume the current state or application (as appropriate).
Do not use this value for the Play
button on media controllers. Use "MediaPlay"
instead.
The properties (Props) key.
The Select key.
The ZoomIn key. (KEYCODE_ZOOM_IN
)
The ZoomOut key. (KEYCODE_ZOOM_OUT
)
The Brightness Down key. Typically controls the display brightness. (KEYCODE_BRIGHTNESS_DOWN
)
The Brightness Up key. Typically controls the display brightness. (KEYCODE_BRIGHTNESS_UP
)
Toggle removable media to eject (open) and insert (close) state. (KEYCODE_MEDIA_EJECT
)
The LogOff key.
Toggle power state. (KEYCODE_POWER
)
Note: Some devices might not expose this key to the operating environment.
The PowerOff
key. Sometime called PowerDown
.
The Print Screen
or SnapShot
key, to initiate print-screen function.
The Hibernate key. This key saves the current state of the computer to disk so that it can be restored. The computer will then shutdown.
The 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
The WakeUp key. (KEYCODE_WAKEUP
)
The All Candidates key, to initate the multi-candidate mode.
The Alphanumeric key.
The Code Input key, to initiate the Code Input mode to allow characters to be entered by their code points.
The 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.
The Convert key, to convert the current input method sequence.
A 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.
The Final Mode Final
key used on some Asian keyboards, to enable the final mode for IMEs.
Switch to the first character group. (ISO/IEC 9995)
Switch to the last character group. (ISO/IEC 9995)
Switch to the next character group. (ISO/IEC 9995)
Switch to the previous character group. (ISO/IEC 9995)
The Mode Change key, to toggle between or cycle through input modes of IMEs.
The Next Candidate function key.
The NonConvert (“Don’t Convert”) key, to accept current input method sequence without conversion in IMEs.
The Previous Candidate function key.
The Process key.
The Single Candidate function key.
The Hangul (Korean characters) Mode key, to toggle between Hangul and English modes.
The Hanja (Korean characters) Mode key.
The Junja (Korean characters) Mode key.
The Eisu key. This key may close the IME, but its purpose
is defined by the current IME. (KEYCODE_EISU
)
The (Half-Width) Characters key.
The Hiragana (Japanese Kana characters) key.
The Hiragana/Katakana toggle key. (KEYCODE_KATAKANA_HIRAGANA
)
The Kana Mode (Kana Lock) key. This key is used to enter hiragana mode (typically from romaji mode).
The 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
)
The Katakana (Japanese Kana characters) key.
The Roman characters function key.
The Zenkaku (Full-Width) Characters key.
The Zenkaku/Hankaku (full-width/half-width) toggle key. (KEYCODE_ZENKAKU_HANKAKU
)
The F1 key, a general purpose function key, as index 1.
The F2 key, a general purpose function key, as index 2.
The F3 key, a general purpose function key, as index 3.
The F4 key, a general purpose function key, as index 4.
The F5 key, a general purpose function key, as index 5.
The F6 key, a general purpose function key, as index 6.
The F7 key, a general purpose function key, as index 7.
The F8 key, a general purpose function key, as index 8.
The F9 key, a general purpose function key, as index 9.
The F10 key, a general purpose function key, as index 10.
The F11 key, a general purpose function key, as index 11.
The F12 key, a general purpose function key, as index 12.
General purpose virtual function key, as index 1.
General purpose virtual function key, as index 2.
General purpose virtual function key, as index 3.
General purpose virtual function key, as index 4.
Select next (numerically or logically) lower channel. (
, APPCOMMAND_MEDIA_CHANNEL_DOWN
)KEYCODE_CHANNEL_DOWN
Select next (numerically or logically) higher channel. (
, APPCOMMAND_MEDIA_CHANNEL_UP
)KEYCODE_CHANNEL_UP
Close the current document or message (Note: This doesn’t close the application). (APPCOMMAND_CLOSE
)
Open an editor to forward the current message. (APPCOMMAND_FORWARD_MAIL
)
Open an editor to reply to the current message. (APPCOMMAND_REPLY_TO_MAIL
)
Send the current message. (APPCOMMAND_SEND_MAIL
)
Close the current media, for example to close a CD or DVD tray. (KEYCODE_MEDIA_CLOSE
)
Initiate or continue forward playback at faster than normal speed, or increase speed if already fast forwarding. (
, APPCOMMAND_MEDIA_FAST_FORWARD
)KEYCODE_MEDIA_FAST_FORWARD
Pause the currently playing media. (
, APPCOMMAND_MEDIA_PAUSE
)KEYCODE_MEDIA_PAUSE
Media controller devices should use this value rather than "Pause"
for their pause keys.
Initiate or continue media playback at normal speed, if not currently playing at normal speed. (
, APPCOMMAND_MEDIA_PLAY
)KEYCODE_MEDIA_PLAY
Toggle media between play and pause states. (
, APPCOMMAND_MEDIA_PLAY_PAUSE
)KEYCODE_MEDIA_PLAY_PAUSE
Initiate or resume recording of currently selected media. (
, APPCOMMAND_MEDIA_RECORD
)KEYCODE_MEDIA_RECORD
Initiate or continue reverse playback at faster than normal speed, or increase speed if already rewinding. (
, APPCOMMAND_MEDIA_REWIND
)KEYCODE_MEDIA_REWIND
Stop media playing, pausing, forwarding, rewinding, or recording, if not already stopped. (
, APPCOMMAND_MEDIA_STOP
)KEYCODE_MEDIA_STOP
Seek to next media or program track. (
, APPCOMMAND_MEDIA_NEXTTRACK
)KEYCODE_MEDIA_NEXT
Seek to previous media or program track. (
, APPCOMMAND_MEDIA_PREVIOUSTRACK
)KEYCODE_MEDIA_PREVIOUS
Open a new document or message. (APPCOMMAND_NEW
)
Open an existing document or message. (APPCOMMAND_OPEN
)
Print the current document or message. (APPCOMMAND_PRINT
)
Save the current document or message. (APPCOMMAND_SAVE
)
Spellcheck the current document or selection. (APPCOMMAND_SPELL_CHECK
)
The 11
key found on media numpads that
have buttons from 1
… 12
.
The 12
key found on media numpads that
have buttons from 1
… 12
.
Adjust audio balance leftward. (VK_AUDIO_BALANCE_LEFT
)
Adjust audio balance rightward. (VK_AUDIO_BALANCE_RIGHT
)
Decrease audio bass boost or cycle down through bass boost states. (
, APPCOMMAND_BASS_DOWN
)VK_BASS_BOOST_DOWN
Toggle bass boost on/off. (APPCOMMAND_BASS_BOOST
)
Increase audio bass boost or cycle up through bass boost states. (
, APPCOMMAND_BASS_UP
)VK_BASS_BOOST_UP
Adjust audio fader towards front. (VK_FADER_FRONT
)
Adjust audio fader towards rear. (VK_FADER_REAR
)
Advance surround audio mode to next available mode. (VK_SURROUND_MODE_NEXT
)
Decrease treble. (APPCOMMAND_TREBLE_DOWN
)
Increase treble. (APPCOMMAND_TREBLE_UP
)
Decrease audio volume. (
, APPCOMMAND_VOLUME_DOWN
)KEYCODE_VOLUME_DOWN
Increase audio volume. (
, APPCOMMAND_VOLUME_UP
)KEYCODE_VOLUME_UP
Toggle between muted state and prior volume level. (
, APPCOMMAND_VOLUME_MUTE
)KEYCODE_VOLUME_MUTE
Toggle the microphone on/off. (APPCOMMAND_MIC_ON_OFF_TOGGLE
)
Decrease microphone volume. (APPCOMMAND_MICROPHONE_VOLUME_DOWN
)
Increase microphone volume. (APPCOMMAND_MICROPHONE_VOLUME_UP
)
Mute the microphone. (
, APPCOMMAND_MICROPHONE_VOLUME_MUTE
)KEYCODE_MUTE
Show correction list when a word is incorrectly identified. (APPCOMMAND_CORRECTION_LIST
)
Toggle between dictation mode and command/control mode. (APPCOMMAND_DICTATE_OR_COMMAND_CONTROL_TOGGLE
)
The first generic “LaunchApplication” key. This is commonly associated with launching “My Computer”, and may have a computer symbol on the key. (APPCOMMAND_LAUNCH_APP1
)
The 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
The “Calendar” key. (KEYCODE_CALENDAR
)
The “Contacts” key. (KEYCODE_CONTACTS
)
The “Mail” key. (APPCOMMAND_LAUNCH_MAIL
)
The “Media Player” key. (APPCOMMAND_LAUNCH_MEDIA_SELECT
)
The “Music Player” key.
The “Phone” key.
The “Screen Saver” key.
The “Spreadsheet” key.
The “Web Browser” key.
The “WebCam” key.
The “Word Processor” key.
Navigate to previous content or page in current history. (APPCOMMAND_BROWSER_BACKWARD
)
Open the list of browser favorites. (APPCOMMAND_BROWSER_FAVORITES
)
Navigate to next content or page in current history. (APPCOMMAND_BROWSER_FORWARD
)
Go to the user’s preferred home page. (APPCOMMAND_BROWSER_HOME
)
Refresh the current page or content. (APPCOMMAND_BROWSER_REFRESH
)
Call up the user’s preferred search page. (APPCOMMAND_BROWSER_SEARCH
)
Stop loading the current page or content. (APPCOMMAND_BROWSER_STOP
)
The Application switch key, which provides a list of recent apps to switch between. (KEYCODE_APP_SWITCH
)
The Call key. (KEYCODE_CALL
)
The Camera key. (KEYCODE_CAMERA
)
The Camera focus key. (KEYCODE_FOCUS
)
The End Call key. (KEYCODE_ENDCALL
)
The Back key. (KEYCODE_BACK
)
The Home key, which goes to the phone’s main screen. (KEYCODE_HOME
)
The Headset Hook key. (KEYCODE_HEADSETHOOK
)
The Last Number Redial key.
The Notification key. (KEYCODE_NOTIFICATION
)
Toggle between manner mode state: silent, vibrate, ring, … (KEYCODE_MANNER_MODE
)
The Voice Dial key.
Switch to viewing TV. (KEYCODE_TV
)
TV 3D Mode. (KEYCODE_3D_MODE
)
Toggle between antenna and cable input. (KEYCODE_TV_ANTENNA_CABLE
)
Audio description. (KEYCODE_TV_AUDIO_DESCRIPTION
)
Audio description mixing volume down. (KEYCODE_TV_AUDIO_DESCRIPTION_MIX_DOWN
)
Audio description mixing volume up. (KEYCODE_TV_AUDIO_DESCRIPTION_MIX_UP
)
Contents menu. (KEYCODE_TV_CONTENTS_MENU
)
Contents menu. (KEYCODE_TV_DATA_SERVICE
)
Switch the input mode on an external TV. (KEYCODE_TV_INPUT
)
Switch to component input #1. (KEYCODE_TV_INPUT_COMPONENT_1
)
Switch to component input #2. (KEYCODE_TV_INPUT_COMPONENT_2
)
Switch to composite input #1. (KEYCODE_TV_INPUT_COMPOSITE_1
)
Switch to composite input #2. (KEYCODE_TV_INPUT_COMPOSITE_2
)
Switch to HDMI input #1. (KEYCODE_TV_INPUT_HDMI_1
)
Switch to HDMI input #2. (KEYCODE_TV_INPUT_HDMI_2
)
Switch to HDMI input #3. (KEYCODE_TV_INPUT_HDMI_3
)
Switch to HDMI input #4. (KEYCODE_TV_INPUT_HDMI_4
)
Switch to VGA input #1. (KEYCODE_TV_INPUT_VGA_1
)
Media context menu. (KEYCODE_TV_MEDIA_CONTEXT_MENU
)
Toggle network. (KEYCODE_TV_NETWORK
)
Number entry. (KEYCODE_TV_NUMBER_ENTRY
)
Toggle the power on an external TV. (KEYCODE_TV_POWER
)
Radio. (KEYCODE_TV_RADIO_SERVICE
)
Satellite. (KEYCODE_TV_SATELLITE
)
Broadcast Satellite. (KEYCODE_TV_SATELLITE_BS
)
Communication Satellite. (KEYCODE_TV_SATELLITE_CS
)
Toggle between available satellites. (KEYCODE_TV_SATELLITE_SERVICE
)
Analog Terrestrial. (KEYCODE_TV_TERRESTRIAL_ANALOG
)
Digital Terrestrial. (KEYCODE_TV_TERRESTRIAL_DIGITAL
)
Timer programming. (KEYCODE_TV_TIMER_PROGRAMMING
)
Switch the input mode on an external AVR (audio/video receiver). (KEYCODE_AVR_INPUT
)
Toggle the power on an external AVR (audio/video receiver). (KEYCODE_AVR_POWER
)
General purpose color-coded media function key, as index 0 (red). (
, VK_COLORED_KEY_0
)KEYCODE_PROG_RED
General purpose color-coded media function key, as index 1 (green). (
, VK_COLORED_KEY_1
)KEYCODE_PROG_GREEN
General purpose color-coded media function key, as index 2 (yellow). (
, VK_COLORED_KEY_2
)KEYCODE_PROG_YELLOW
General purpose color-coded media function key, as index 3 (blue). (
, VK_COLORED_KEY_3
)KEYCODE_PROG_BLUE
General purpose color-coded media function key, as index 4 (grey). (VK_COLORED_KEY_4
)
General purpose color-coded media function key, as index 5 (brown). (VK_COLORED_KEY_5
)
Toggle the display of Closed Captions. (
, VK_CC
)KEYCODE_CAPTIONS
Adjust brightness of device, by toggling between or cycling through states. (VK_DIMMER
)
Swap video sources. (VK_DISPLAY_SWAP
)
Select Digital Video Rrecorder. (KEYCODE_DVR
)
Exit the current application. (VK_EXIT
)
Clear program or content stored as favorite 0. (VK_CLEAR_FAVORITE_0
)
Clear program or content stored as favorite 1. (VK_CLEAR_FAVORITE_1
)
Clear program or content stored as favorite 2. (VK_CLEAR_FAVORITE_2
)
Clear program or content stored as favorite 3. (VK_CLEAR_FAVORITE_3
)
Select (recall) program or content stored as favorite 0. (VK_RECALL_FAVORITE_0
)
Select (recall) program or content stored as favorite 1. (VK_RECALL_FAVORITE_1
)
Select (recall) program or content stored as favorite 2. (VK_RECALL_FAVORITE_2
)
Select (recall) program or content stored as favorite 3. (VK_RECALL_FAVORITE_3
)
Store current program or content as favorite 0. (VK_STORE_FAVORITE_0
)
Store current program or content as favorite 1. (VK_STORE_FAVORITE_1
)
Store current program or content as favorite 2. (VK_STORE_FAVORITE_2
)
Store current program or content as favorite 3. (VK_STORE_FAVORITE_3
)
Toggle display of program or content guide. (
, VK_GUIDE
)KEYCODE_GUIDE
If guide is active and displayed, then display next day’s content. (VK_NEXT_DAY
)
If guide is active and displayed, then display previous day’s content. (VK_PREV_DAY
)
Toggle display of information about currently selected context or media. (
, VK_INFO
)KEYCODE_INFO
Toggle instant replay. (VK_INSTANT_REPLAY
)
Launch linked content, if available and appropriate. (VK_LINK
)
List the current program. (VK_LIST
)
Toggle display listing of currently available live content or programs. (VK_LIVE
)
Lock or unlock current content or program. (VK_LOCK
)
Show 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"
.
Audio track key. (KEYCODE_MEDIA_AUDIO_TRACK
)
Select previously selected channel or media. (
, VK_LAST
)KEYCODE_LAST_CHANNEL
Skip backward to next content or program. (KEYCODE_MEDIA_SKIP_BACKWARD
)
Skip forward to next content or program. (
, VK_SKIP
)KEYCODE_MEDIA_SKIP_FORWARD
Step backward to next content or program. (KEYCODE_MEDIA_STEP_BACKWARD
)
Step forward to next content or program. (KEYCODE_MEDIA_STEP_FORWARD
)
Media 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
)
Cycle to next favorite channel (in favorites list). (VK_NEXT_FAVORITE_CHANNEL
)
Cycle to next user profile (if there are multiple user profiles). (VK_USER
)
Access on-demand content or programs. (VK_ON_DEMAND
)
Pairing key to pair devices. (KEYCODE_PAIRING
)
Move picture-in-picture window down. (VK_PINP_DOWN
)
Move picture-in-picture window. (VK_PINP_MOVE
)
Toggle display of picture-in-picture window. (VK_PINP_TOGGLE
)
Move picture-in-picture window up. (VK_PINP_UP
)
Decrease media playback speed. (VK_PLAY_SPEED_DOWN
)
Reset playback to normal speed. (VK_PLAY_SPEED_RESET
)
Increase media playback speed. (VK_PLAY_SPEED_UP
)
Toggle random media or content shuffle mode. (VK_RANDOM_TOGGLE
)
Not a physical key, but this key code is sent when the remote control battery is low. (VK_RC_LOW_BATTERY
)
Toggle or cycle between media recording speeds. (VK_RECORD_SPEED_NEXT
)
Toggle RF (radio frequency) input bypass mode (pass RF input directly to the RF output). (VK_RF_BYPASS
)
Toggle scan channels mode. (VK_SCAN_CHANNELS_TOGGLE
)
Advance display screen mode to next available mode. (VK_SCREEN_MODE_NEXT
)
Toggle display of device settings screen. (
, VK_SETTINGS
)KEYCODE_SETTINGS
Toggle split screen mode. (VK_SPLIT_SCREEN_TOGGLE
)
Switch the input mode on an external STB (set top box). (KEYCODE_STB_INPUT
)
Toggle the power on an external STB (set top box). (KEYCODE_STB_POWER
)
Toggle display of subtitles, if available. (VK_SUBTITLE
)
Toggle display of teletext, if available (
, VK_TELETEXT
).KEYCODE_TV_TELETEXT
Advance video mode to next available mode. (VK_VIDEO_MODE_NEXT
)
Cause device to identify itself in some manner, e.g., audibly or visibly. (VK_WINK
)
Toggle between full-screen and scaled content, or alter magnification level. (
, VK_ZOOM
)KEYCODE_TV_ZOOM_MODE
Implementations
impl Key
impl Key
pub fn legacy_charcode(&self) -> u32
pub fn legacy_charcode(&self) -> u32
Determine a charCode value for a key with a character value.
For all other keys the value is zero. The charCode is an implementation specific legacy property of DOM keyboard events.
Specification: https://w3c.github.io/uievents/#dom-keyboardevent-charcode
pub fn legacy_keycode(&self) -> u32
pub fn legacy_keycode(&self) -> u32
Determine a keyCode value for a key.
The keyCode is an implementation specific legacy property of DOM keyboard events.
Specification: https://w3c.github.io/uievents/#dom-keyboardevent-keycode
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Key
impl UnwindSafe for Key
Blanket Implementations
Mutably borrows from an owned value. Read more